NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Convert.ToInt16 (UInt16)

Converts a UInt16 to an Int16.

[Visual Basic]
Overloads Public Shared Function ToInt16( _
   ByVal value As UInt16 _
) As Short
[C#]
public static short ToInt16(
   ushort value
);
[C++]
public: static short ToInt16(
   unsigned short value
);
[JScript]
public static function ToInt16(
   value : UInt16
) : Int16;

Parameters

value
The value to convert.

Return Value

The value as an Int16.

Exceptions

Exception Type Condition
OverflowException is thrown if value is greater than Int16.MaxValue.

See Also

Convert Class | Convert Members | System Namespace | Convert.ToInt16 Overload List