C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToByte Method
ToByte Method (Boolean)
ToByte Method (Byte)
ToByte Method (Char)
ToByte Method (DateTime)
ToByte Method (Decimal)
ToByte Method (Double)
ToByte Method (Int16)
ToByte Method (Int32)
ToByte Method (Int64)
ToByte Method (Object)
ToByte Method (SByte)
ToByte Method (Single)
ToByte Method (String)
ToByte Method (UInt16)
ToByte Method (UInt32)
ToByte Method (UInt64)
ToByte Method (Object, IFormatProvider)
ToByte Method (String, IFormatProvider)
ToByte Method (String, Int32)
Convert
ToByte Method (DateTime)
Calling this method always throws
InvalidCastException
.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
static
byte
ToByte
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
Byte
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToByte Overload
System Namespace