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;
The SByte value for this instance.
Exception Type | Condition |
---|---|
InvalidCastException | If this DateTime is not an SByte value. |
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).
DateTime Structure | DateTime Members | System Namespace | SByte | Byte