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!

Boolean.ToInt16

Converts this instance of a Boolean to an Int16.

[Visual Basic]
Overridable Public Function ToInt16() As Short
[C#]
public virtual short ToInt16();
[C++]
public: virtual short ToInt16();
[JScript]
public function ToInt16() : Int16;

Return Value

An Int16 as a Boolean.

Remarks

The ToInt16 method returns a short.

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See the TypeCode enumeration for more information about type codes, Convert, and ToInt16.)

See Also

Boolean Structure | Boolean Members | System Namespace