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 (Boolean)

Converts a Boolean to an Int16.

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

Parameters

value
The number to be converted.

Return Value

The number 1 if value is true; otherwise, 0.

See Also

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