MemberDescriptor.GetInvokee(Type, Object) Метод

Определение

Внимание

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

Внимание

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

Возвращает компонент, для которого требуется вызвать метод.

protected:
 static System::Object ^ GetInvokee(Type ^ componentClass, System::Object ^ component);
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);
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

Параметры

componentClass
Type

Представляет Type тип компонента, к который MemberDescriptor привязан. Например, если это MemberDescriptor описывает свойство, этот параметр должен быть классом, на котором объявлено свойство.

component
Object

Экземпляр вызываемого объекта.

Возвращаемое значение

Экземпляр вызываемого компонента. Этот метод возвращает визуальный конструктор при присоединении свойства к визуальному конструктору.

Атрибуты

Исключения

componentClass или component есть null.

Применяется к