DirectX SDK

DirectPlayMessage.Clear

The DirectPlayMessage.Clear method clears all data from the message object.

object.Clear()

Parameters

object
Object expression that resolves to a DirectPlayMessage object.

Error Codes

If the method fails, an error is raised and Err.Number will be set.

Remarks

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.