Click or drag to resize

MessageToMessage Method

Returns a Message constructed using the supplied object value.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public static Message ToMessage(
	Object value
)

Parameters

value
Type: SystemObject
The object to be converted to a Message.

Return Value

Type: Message
A Message constructed using the supplied object value.
Remarks
If the value is null, it returns a new Message with empty data. If the value is an instance of a Message, it returns value. Otherwise, value is converted to a string using the standard ToString method, and this string is used as the data of a new Message.
See Also