SDTUtils.GetContainer Method

Solclient

SDTUtilsGetContainer Method
version: 7.2.1.27
Returns an ISDTContainer (if available) within a message. The ISDTContainer could be either a IMapContainer or IStreamContainer. It is recommended to Close the ISDTContainer when done. If it is not explicitly closed, the container is automatically closed when the associated message is sent or disposed IDisposable.

Whether it is explicitly closed by the client application, or implicitly by the API, any attempt to use this container will result in an OperationErrorException with ParamNullReference error subcode.

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 ISDTContainer GetContainer(
	IMessage message
)
Public Shared Function GetContainer ( 
	message As IMessage
) As ISDTContainer
public:
static ISDTContainer^ GetContainer(
	IMessage^ message
)

Parameters

message
Type: SolaceSystems.Solclient.MessagingIMessage
Message to get the container from.

Return Value

Type: ISDTContainer
A IMapContainer or IStreamContainer, if they exist; null, otherwise
Exceptions
ExceptionCondition
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