Solclient
SDTUtilsSetText Method |
Sets the binary attachment part of the message to the specified utf8 encoded string.
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 SetText( IMessage message, string text )
Public Shared Sub SetText ( message As IMessage, text As String )
public: static void SetText( IMessage^ message, String^ text )
Parameters
- message
- Type: SolaceSystems.Solclient.MessagingIMessage
Message to set the binary attachment on. - text
- Type: SystemString
Text to set the binary attachment to.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when message or string is null. |
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