IMapContainer.GetUInt16 Method

Solclient

IMapContainerGetUInt16 Method
version: 7.2.1.27
Gets the field with the given name as a UInt16 (converted to Int32).

Namespace: SolaceSystems.Solclient.Messaging.SDT
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
int GetUInt16(
	string name
)
Function GetUInt16 ( 
	name As String
) As Integer
int GetUInt16(
	String^ name
)

Parameters

name
Type: SystemString
Field name; cannot be null.

Return Value

Type: Int32
UInt16 field value
Exceptions
ExceptionCondition
FieldNotFoundException Thrown when no field with the given name exists.
OperationErrorException Thrown when one of the following occurs: there is no field with the given name or it is an invalid data conversion. 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