Converts this instance to a Type.
[Visual Basic] Overridable Public Function ToType( _ ByVal type As Type _ ) As Object [C#] public virtual object ToType( Type type ); [C++] public: virtual Object* ToType( Type* type ); [JScript] public function ToType( type : Type ) : Object;
The Type object for this instance.
Exception Type | Condition |
---|---|
InvalidCastException | If this DateTime is not a Type object. |
The ToType method casts this DateTime instance into a Type object. An exception is thrown if the type cannot be coerced into a single-precision floating point number (see Single).
DateTime Structure | DateTime Members | System Namespace | Object | Type | Single