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.ToUInt16 (Int32)

Converts an Int32 to a UInt16.

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

Parameters

value
The number to be converted.

Return Value

The converted value.

Exceptions

Exception Type Condition
OverflowException is thrown if value is greater than UInt16.MaxValue or less than UInt16.MinValue.

See Also

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