10.24.0

SDTUtilsGetText Method

If the message's binary payload contains a string, this method will return it. Otherwise it will return null.

Definition

Namespace: SolaceSystems.Solclient.Messaging.SDT
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.24.0
C#
public static string GetText(
	IMessage message
)

Parameters

message  IMessage
The message to get the string from.

Return Value

String
The string from the binary payload; or null, if none exists.

Exceptions

ArgumentNullException Thrown when message 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