MemberDescriptor.GetInvokee(Type, Object) MemberDescriptor.GetInvokee(Type, Object) MemberDescriptor.GetInvokee(Type, Object) MemberDescriptor.GetInvokee(Type, Object) Method

Definition

Warning

This API is now obsolete.

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.  http://go.microsoft.com/fwlink/?linkid=14202")]
[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);
static member GetInvokee : Type * obj -> obj
Protected Shared Function GetInvokee (componentClass As Type, component As Object) As Object

Parameters

componentClass
Type Type Type 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 Object Object 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.

Exceptions

Applies to