IMapContainer.CreateStream Method

Solclient

IMapContainerCreateStream Method
version: 7.2.1.27
Creates a substream with the given name. The returned IStreamContainer is ready for read and write operations. It is recommended to Close the IStreamContainer when done. If it is not explicitly closed, the container is automatically closed when the associated parent container is closed or the associated message (if it is a message-dependent container) is disposed.

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
IStreamContainer CreateStream(
	string name
)
Function CreateStream ( 
	name As String
) As IStreamContainer
IStreamContainer^ CreateStream(
	String^ name
)

Parameters

name
Type: SystemString
Field name; cannot be null.

Return Value

Type: IStreamContainer
The Stream container
Exceptions
ExceptionCondition
OperationErrorException Thrown when an error condition occurs when trying to create this continer. In this case ReturnCode and SDKErrorInfo are accessible from OperationErrorException and contain more information.
FatalErrorException Thrown when an unrecoverable error occurs.
InvalidOperationException Thrown when the container is already closed.
See Also