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!

String.ToType

Retrieves the Type for a specified object.

[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
The Type of the object.

Return Value

The Type identification of the specified object.

Exceptions

Exception Type Condition
InvalidCastException If it is the wrong type.

Remarks

The ToType method accesses the Type class to return the classification of an object, whether it is a class, a interface, an enumeration, a method, a property, or a field.

See Also

String Class | String Members | System Namespace