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!

Decimal.ToUInt16 ()

Converts this instance of Decimal to a UInt16.

[Visual Basic]
Overloads Overridable Public Function ToUInt16() As UInt16
[C#]
public virtual ushort ToUInt16();
[C++]
public: virtual unsigned short ToUInt16();
[JScript]
public function ToUInt16() : UInt16;

Return Value

The result's of converting the Decimal to a UInt16 value.

Exceptions

Exception Type Condition
OverflowException if the resulting integer value is less than UInt16.MinValue or greater than UInt16.MaxValue.

Remarks

The ToUInt16 method converts a Decimal value into a UInt16 and returns it.

See Also

Decimal Structure | Decimal Members | System Namespace | Decimal.ToUInt16 Overload List