MemberDescriptor.GetInvokee Method (Type, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected static object GetInvokee(
	Type componentClass,
	object component
)

Parameters

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

component
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
ArgumentNullException

componentClass or component is null.

.NET Framework
Available since 1.1
Return to top
Show: