Solclient
SDTUtilsSetSDTContainer Method |
Sets an SDT container as the binary attachment of a message. Any existing data in
the message is overwritten. This method copies in from the given container, therefore
changes to the container after this method returns will not be propagated to the message.
Namespace: SolaceSystems.Solclient.Messaging.SDT
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
public static void SetSDTContainer( IMessage msg, ISDTContainer container )
Public Shared Sub SetSDTContainer ( msg As IMessage, container As ISDTContainer )
public: static void SetSDTContainer( IMessage^ msg, ISDTContainer^ container )
Parameters
- msg
- Type: SolaceSystems.Solclient.MessagingIMessage
an IMessage instance - container
- Type: SolaceSystems.Solclient.Messaging.SDTISDTContainer
a ISDTContainer
Exceptions
Exception | Condition |
---|---|
OperationErrorException | Thrown when an error occurs. In this case ReturnCode and SDKErrorInfo are accessible from OperationErrorException and contain more information. |
FatalErrorException | Thrown when an unrecoverable error occurs. |
See Also