 | MessageValueOf Method |
Returns a Message built using the supplied object data.
Namespace:
OBCOM.NetSwitchLib.Messages
Assembly:
OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntaxpublic static Message ValueOf(
Object data
)
Public Shared Function ValueOf (
data As Object
) As Message
Parameters
- data
- Type: SystemObject
The data used to build a Message (can be null).
Return Value
Type:
Message
A
Message built using the supplied object
data.
Remarks
If data is null, a new Message
without data is returned. If data is itself a
Message, it is returned directly without creating a new
Message. Otherwise data is used to create
a new Message, in which case data must be
either a string, a byte[] or an object.
See Also