MemberDescriptor.GetInvokee Method (Type, Object)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Note: This API is now obsolete.

Gets the component on which to invoke a method.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

[ObsoleteAttribute("This method has been deprecated. Use GetInvocationTarget instead.")]
protected static object GetInvokee(
	Type componentClass,
	object component


Type: System.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.

Type: System.Object

An instance of the object to call.

Return Value

Type: System.Object

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

Exception Condition

componentClass or component is null.

.NET Framework
Available since 1.1
Return to top