MemberDescriptor.GetInvokee(Type, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202
警告
MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.
警告
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
取得要在其上叫用 (Invoke) 方法的元件。
protected:
static System::Object ^ GetInvokee(Type ^ componentClass, System::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);
protected static object GetInvokee (Type componentClass, object component);
[System.Obsolete("MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.")]
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);
[<System.Obsolete("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetInvokee : Type * obj -> obj
static member GetInvokee : Type * obj -> obj
[<System.Obsolete("MemberDescriptor.GetInvokee has been deprecated. Use GetInvocationTarget instead.")>]
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
。