Solclient
| SDTUtilsGetText Method |
If the message's binary payload contains a string, this method will
return it. Otherwise it will return null.
Namespace: SolaceSystems.Solclient.Messaging.SDT
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntaxpublic static string GetText( IMessage message )
Public Shared Function GetText ( message As IMessage ) As String
public: static String^ GetText( IMessage^ message )
Parameters
- message
- Type: SolaceSystems.Solclient.MessagingIMessage
The message to get the string from.
Return Value
Type: StringThe string from the binary payload; or null, if none exists.
Exceptions| Exception | Condition |
|---|---|
| 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