PropertyDescriptor.GetInvocationTarget(Type, Object) 方法

定义

此方法返回应在调用成员期间使用的对象。

protected:
 override System::Object ^ GetInvocationTarget(Type ^ type, System::Object ^ instance);
protected override object GetInvocationTarget(Type type, object instance);
override this.GetInvocationTarget : Type * obj -> obj
Protected Overrides Function GetInvocationTarget (type As Type, instance As Object) As Object

参数

type
Type

Type调用目标。

instance
Object

潜在的调用目标。

返回

Object 调用成员期间应使用该类型。

注解

通常,返回值将与传入的值相同 instance 。 如果有人与此实例关联另一个对象,或者实例是自定义类型描述符,则 GetInvocationTarget 该方法可能会返回不同的值。

适用于