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 and completes the submission of the message to the server. This method is only required if the message is being submitted using the AppendMessage or Write methods.

See Also

AppendMessage Method, CreateMessage Method