Επεξεργασία

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


MemberDescriptor.GetInvokee(Type, Object) Method

Definition

Caution

This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202

Caution

MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.

Caution

This method has been deprecated. Use GetInvocationTarget instead. http://go.microsoft.com/fwlink/?linkid=14202

Caution

This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202

Gets the component on which to invoke a method.

protected:
 static System::Object ^ GetInvokee(Type ^ componentClass, System::Object ^ component);
[System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")]
protected static object GetInvokee (Type componentClass, object component);
protected static object GetInvokee (Type componentClass, object component);
[System.Obsolete("MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.")]
protected static object GetInvokee (Type componentClass, object component);
[System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected static object GetInvokee (Type componentClass, object component);
[System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected static object GetInvokee (Type componentClass, object component);
[<System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetInvokee : Type * obj -> obj
static member GetInvokee : Type * obj -> obj
[<System.Obsolete("MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.")>]
static member GetInvokee : Type * obj -> obj
[<System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetInvokee : Type * obj -> obj
[<System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetInvokee : Type * obj -> obj
Protected Shared Function GetInvokee (componentClass As Type, component As Object) As Object

Parameters

componentClass
Type

A Type representing the type of component this MemberDescriptor is bound to. For example, if this MemberDescriptor describes a property, this parameter should be the class that the property is declared on.

component
Object

An instance of the object to call.

Returns

An instance of the component to invoke. This method returns a visual designer when the property is attached to a visual designer.

Attributes

Exceptions

componentClass or component is null.

Applies to