TypeDescriptor.GetReflectionType TypeDescriptor.GetReflectionType TypeDescriptor.GetReflectionType TypeDescriptor.GetReflectionType Method

Definition

Returns a Type that can be used to perform reflection.

Overloads

GetReflectionType(Object) GetReflectionType(Object) GetReflectionType(Object) GetReflectionType(Object)

Returns a Type that can be used to perform reflection, given an object.

GetReflectionType(Type) GetReflectionType(Type) GetReflectionType(Type)

Returns a Type that can be used to perform reflection, given a class type.

GetReflectionType(Object) GetReflectionType(Object) GetReflectionType(Object) GetReflectionType(Object)

Returns a Type that can be used to perform reflection, given an object.

public:
 static Type ^ GetReflectionType(System::Object ^ instance);
public static Type GetReflectionType (object instance);
static member GetReflectionType : obj -> Type
Public Shared Function GetReflectionType (instance As Object) As Type

Parameters

instance
Object Object Object Object

An instance of the target component.

Returns

A Type for the specified object.

Exceptions

Remarks

The GetReflectionType method is a low-level version of the GetTypeDescriptor method. GetReflectionType is typically used to perform standard reflection against an object when no custom type descriptor can be located for it.

See also

GetReflectionType(Type) GetReflectionType(Type) GetReflectionType(Type)

Returns a Type that can be used to perform reflection, given a class type.

public:
 static Type ^ GetReflectionType(Type ^ type);
public static Type GetReflectionType (Type type);
static member GetReflectionType : Type -> Type

Parameters

type
Type Type Type Type

The Type of the target component.

Returns

A Type of the specified class.

Exceptions

Remarks

The GetReflectionType method is a low-level version of the GetTypeDescriptor method. GetReflectionType is typically used to perform standard reflection against a class when no custom type descriptor can be located for it.

See also

Applies to