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!

DateTime.ToByte

Converts this instance to a Byte value

[Visual Basic]
Overridable Public Function ToByte() As Byte
[C#]
public virtual byte ToByte();
[C++]
public: virtual unsigned char ToByte();
[JScript]
public function ToByte() : Byte;

Return Value

The Byte value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime cannot be a Byte.

Remarks

The ToByte method casts this DateTime instance into an Byte value. An exception is thrown if this instance cannot be coerced into an 8-bit unsigned integer (byte).

See Also

DateTime Structure | DateTime Members | System Namespace | Byte | SByte