asp.net.ph

Convert.ToUInt16 Method ( DateTime )

System Namespace   Convert Class


Calling this method always throws InvalidCastException.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[ VB ]
Overloads Public Shared Function ToUInt16 ( _
   ByVal value As DateTime _
) As UInt16

[ C# ]
public static ushort ToUInt16 ( 
   DateTime value
);

[ C++ ]
public: static unsigned short ToUInt16 ( 
   DateTime value
);

[ JScript ]
public static function ToUInt16 (
   value : DateTime
) : UInt16;

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.

See Also

Convert Members   Convert.ToUInt16 Overload List   DateTime Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph