TypeDescriptionProvider.GetReflectionType 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
对对象执行正常反射。
重载
| GetReflectionType(Type) | 对类型执行正常反射。 | 
| GetReflectionType(Type, Object) | 对具有给定类型的给定对象执行正常反射。 | 
| GetReflectionType(Object) | 对给定对象执行正常反射。 | 
GetReflectionType(Type)
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
对类型执行正常反射。
public:
 Type ^ GetReflectionType(Type ^ objectType);public Type GetReflectionType (Type objectType);member this.GetReflectionType : Type -> TypePublic Function GetReflectionType (objectType As Type) As Type参数
返回
此 objectType的反射类型。
例外
              objectType
              null。
注解
GetReflectionType 方法是 GetTypeDescriptor 方法的较低级别版本。 如果无法为对象找到任何自定义类型描述符,则调用 GetReflectionType 对对象执行正常反射。
如果已调用使用类型而不是实例的类型描述符成员,请使用此方法重载。
另请参阅
适用于
GetReflectionType(Type, Object)
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
对具有给定类型的给定对象执行正常反射。
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 -> TypePublic Overridable Function GetReflectionType (objectType As Type, instance As Object) As Type参数
- instance
- Object
类型的实例。 可以 null。
返回
此 objectType的反射类型。
注解
GetReflectionType 方法是 GetTypeDescriptor 方法的较低级别版本。 如果无法为对象找到任何自定义类型描述符,则调用 GetReflectionType 对对象执行正常反射。
继承者说明
此方法原型为 virtual,默认情况下,如果未传递父提供程序,则返回 objectType。 如果传递了父提供程序,此方法将调用父提供程序的 GetReflectionType 方法。
另请参阅
适用于
GetReflectionType(Object)
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
- Source:
- TypeDescriptionProvider.cs
对给定对象执行正常反射。
public:
 Type ^ GetReflectionType(System::Object ^ instance);public Type GetReflectionType (object instance);member this.GetReflectionType : obj -> TypePublic Function GetReflectionType (instance As Object) As Type参数
- instance
- Object
类型的实例(不应 null)。
返回
此 instance的反射类型。
例外
              instance
              null。
注解
GetReflectionType 方法是 GetTypeDescriptor 方法的较低级别版本。 如果无法为对象找到任何自定义类型描述符,则调用 GetReflectionType 对对象执行正常反射。
如果已调用使用实例而不是类型的类型描述符成员,请使用此方法重载。