Επεξεργασία

Κοινή χρήση μέσω


TypeDescriptionProvider.GetReflectionType Method

Definition

Performs normal reflection against an object.

Overloads

GetReflectionType(Type)

Performs normal reflection against a type.

GetReflectionType(Type, Object)

Performs normal reflection against the given object with the given type.

GetReflectionType(Object)

Performs normal reflection against the given object.

GetReflectionType(Type)

Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs

Performs normal reflection against a type.

public:
 Type ^ GetReflectionType(Type ^ objectType);
public Type GetReflectionType (Type objectType);
member this.GetReflectionType : Type -> Type
Public Function GetReflectionType (objectType As Type) As Type

Parameters

objectType
Type

The type of object for which to retrieve the IReflect.

Returns

The type of reflection for this objectType.

Exceptions

objectType is null.

Remarks

The GetReflectionType method is a lower-level version of the GetTypeDescriptor method. If no custom type descriptor can be located for an object, GetReflectionType is called to perform normal reflection against the object.

Use this method overload if you have called a type descriptor member that uses a type instead of an instance.

See also

Applies to

GetReflectionType(Type, Object)

Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs

Performs normal reflection against the given object with the given type.

public:
 virtual Type ^ GetReflectionType(Type ^ objectType, System::Object ^ instance);
public virtual Type GetReflectionType (Type objectType, object instance);
public virtual Type GetReflectionType (Type objectType, object? instance);
abstract member GetReflectionType : Type * obj -> Type
override this.GetReflectionType : Type * obj -> Type
Public Overridable Function GetReflectionType (objectType As Type, instance As Object) As Type

Parameters

objectType
Type

The type of object for which to retrieve the IReflect.

instance
Object

An instance of the type. Can be null.

Returns

The type of reflection for this objectType.

Remarks

The GetReflectionType method is a lower-level version of the GetTypeDescriptor method. If no custom type descriptor can be located for an object, GetReflectionType is called to perform normal reflection against the object.

Notes to Inheritors

This method is prototyped as virtual, and by default returns objectType if no parent provider was passed. If a parent provider was passed, this method will invoke the parent provider's GetReflectionType method.

See also

Applies to

GetReflectionType(Object)

Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs
Source:
TypeDescriptionProvider.cs

Performs normal reflection against the given object.

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

Parameters

instance
Object

An instance of the type (should not be null).

Returns

The type of reflection for this instance.

Exceptions

instance is null.

Remarks

The GetReflectionType method is a lower-level version of the GetTypeDescriptor method. If no custom type descriptor can be located for an object, GetReflectionType is called to perform normal reflection against the object.

Use this method overload if you have called a type descriptor member that uses an instance instead of a type.

See also

Applies to