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.ToSByte

Converts this instance to an SByte.

[Visual Basic]
Overridable Public Function ToSByte() As SByte
[C#]
public virtual sbyte ToSByte();
[C++]
public: virtual char ToSByte();
[JScript]
public function ToSByte() : SByte;

Return Value

The SByte value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not an SByte value.

Remarks

The ToSByte method casts this DateTime instance into an SByte value. An exception is thrown if this instance cannot be coerced into an unsigned byte (sbyte).

See Also

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