C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Convert Class
Convert Methods
ToUInt16 Method
ToUInt16 Method (Boolean)
ToUInt16 Method (Byte)
ToUInt16 Method (Char)
ToUInt16 Method (DateTime)
ToUInt16 Method (Decimal)
ToUInt16 Method (Double)
ToUInt16 Method (Int16)
ToUInt16 Method (Int32)
ToUInt16 Method (Int64)
ToUInt16 Method (Object)
ToUInt16 Method (SByte)
ToUInt16 Method (Single)
ToUInt16 Method (String)
ToUInt16 Method (UInt16)
ToUInt16 Method (UInt32)
ToUInt16 Method (UInt64)
ToUInt16 Method (Object, IFormatProvider)
ToUInt16 Method (String, IFormatProvider)
ToUInt16 Method (String, Int32)
Convert
ToUInt16 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
ushort
ToUInt16
(
DateTime
value
)
Parameters
value
Type:
System
DateTime
The date and time value to convert.
Return Value
Type:
UInt16
This conversion is not supported. No value is returned.
Exceptions
Exception
Condition
InvalidCastException
This conversion is not supported.
See Also
Reference
Convert Class
ToUInt16 Overload
System Namespace