Language

MemberDescriptor.GetInvocationTarget(Type, Object) メソッド

定義

メンバーの呼び出し中に使用するオブジェクトを取得します。

protected:
 virtual System::Object ^ GetInvocationTarget(Type ^ type, System::Object ^ instance);
protected virtual object? GetInvocationTarget(Type type, object instance);
protected virtual object GetInvocationTarget(Type type, object instance);
abstract member GetInvocationTarget : Type * obj -> obj
override this.GetInvocationTarget : Type * obj -> obj
Protected Overridable Function GetInvocationTarget (type As Type, instance As Object) As Object

パラメーター

type
Type

呼び出しターゲットの Type 。

instance
Object

潜在的な呼び出しターゲット。

返品

メンバーの呼び出し中に使用されるオブジェクト。

例外

type または instance が null。

注釈

通常、戻り値は instance パラメーターと同じになります。 別のオブジェクトがこのインスタンスに関連付けられている場合、またはインスタンスがカスタム型記述子である場合、 GetInvocationTarget メソッドは別の値を返す可能性があります。

適用対象