NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.ToType

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;

Parameters

type
[To be supplied.]

Return Value

The Type object for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not a Type object.

Remarks

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).

See Also

DateTime Structure | DateTime Members | System Namespace | Object | Type | Single