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!

BitConverter.ToBoolean

Converts an array of bytes into a Boolean value.

[Visual Basic]
Public Shared Function ToBoolean( _
   ByVal value() As Byte, _
   ByVal startIndex As Integer _
) As Boolean
[C#]
public static bool ToBoolean(
   byte[] value,
   int startIndex
);
[C++]
public: static bool ToBoolean(
   unsigned char* value[],
   int startIndex
);
[JScript]
public static function ToBoolean(
   value : Byte[],
   startIndex : int
) : Boolean;

Parameters

value
An array of unsigned bytes.
startIndex
A position within the value at which to begin.

Return Value

true if the unsigned byte value (i.e., the first byte beginning at startIndex) of value is nonzero; otherwise, false.

Exceptions

Exception Type Condition
ArgumentException value is a null reference (in Visual Basic Nothing).
ArgumentException startIndex is less than zero or greater than the length of value.

See Also

BitConverter Class | BitConverter Members | System Namespace