CloseMessage Method  
 

Closes the current message.

Syntax

object.CloseMessage

Parameters

None.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The CloseMessage method closes the current message. If there is any remaining data left to be read from the message, it will be read and discarded.

See Also

OpenMessage Method, Read Method