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.