DirectX SDK |
The DirectPlayMessage.Clear method clears all data from the message object.
object.Clear()
If the method fails, an error is raised and Err.Number will be set.
Reusing an existing message object by clearing it and setting new data on it is quicker than creating a new object each time the application needs to send a message.