This documentation is archived and is not being maintained.

Convert.ToByte Method (DateTime)

.NET Framework 1.1

Calling this method always throws InvalidCastException.

[Visual Basic]
Overloads Public Shared Function ToByte( _
   ByVal value As DateTime _
) As Byte
[C#]
public static byte ToByte(
 DateTime value
);
[C++]
public: static unsigned char ToByte(
 DateTime value
);
[JScript]
public static function ToByte(
   value : DateTime
) : Byte;

Parameters

value
A DateTime.

Return Value

This conversion is not supported. No value is returned.

Exceptions

Exception Type Condition
InvalidCastException This conversion is not supported.

Remarks

This method is reserved for future use.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Convert Class | Convert Members | System Namespace | Convert.ToByte Overload List

Show: