メモ : このメソッドは、互換性のために残されています。
メソッドを呼び出す対象のコンポーネントを取得します。
名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文
'宣言
<ObsoleteAttribute("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")> _
Protected Shared Function GetInvokee ( _
componentClass As Type, _
component As Object _
) As Object
'使用
Dim componentClass As Type
Dim component As Object
Dim returnValue As Object
returnValue = MemberDescriptor.GetInvokee(componentClass, component)
[ObsoleteAttribute("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")]
protected static Object GetInvokee (
Type componentClass,
Object component
)
[ObsoleteAttribute(L"This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")]
protected:
static Object^ GetInvokee (
Type^ componentClass,
Object^ component
)
/** @attribute ObsoleteAttribute("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202") */
protected static Object GetInvokee (
Type componentClass,
Object component
)
ObsoleteAttribute("This method has been deprecated. Use GetInvocationTarget instead. https://go.microsoft.com/fwlink/?linkid=14202")
protected static function GetInvokee (
componentClass : Type,
component : Object
) : Object
パラメータ
- componentClass
MemberDescriptor が関連付けられているコンポーネントの型を表す Type。たとえば、MemberDescriptor がプロパティについて説明している場合、このパラメータはそのプロパティが宣言されているクラスになります。
- component
メソッドを呼び出す対象のオブジェクトのインスタンス。
戻り値
メソッドを呼び出す対象のコンポーネントのインスタンス。このメソッドは、プロパティがビジュアル デザイナに結び付けられている場合は、ビジュアル デザイナを返します。
例外
例外の種類 | 条件 |
---|---|
componentClass または component が null 参照 (Visual Basic では Nothing) です。 |
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 1.0、1.1
2.0 では、互換性のために残されています (コンパイル時に警告)
参照
関連項目
MemberDescriptor クラス
MemberDescriptor メンバ
System.ComponentModel 名前空間