10.26.0

SDTUtilsSetText Method

Sets the binary attachment part of the message to the specified utf8 encoded string.

Definition

Namespace: SolaceSystems.Solclient.Messaging.SDT
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.26.0
C#
public static void SetText(
	IMessage message,
	string text
)

Parameters

message  IMessage
Message to set the binary attachment on.
text  String
Text to set the binary attachment to.

Exceptions

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