Click or drag to resize

MessageGetObjectT Method

Returns the object containing the data of this Message.

Namespace:  OBCOM.NetSwitchLib.Messages
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public T GetObject<T>()

Type Parameters

T
The type of the returned object.

Return Value

Type: T
Returns the object containing the data of this Message.
Exceptions
ExceptionCondition
InvalidCastException The object data is not of type T.
Remarks
Warning: to reduce memory consumption, this method returns a reference to (not a copy of) the mutable object stored in this message. If the returned object is later modified, the message object will be modified.
See Also