ServiceManager.GetTarget(Delegate) メソッド

定義

デリゲート用のターゲット オブジェクトを返すヘルパー メソッド。 汎用デリゲートのプロキシにデリゲートを作成すると、このメソッドはプロキシではなく元のオブジェクトを正しく返します。

protected:
 static System::Object ^ GetTarget(Delegate ^ callback);
protected static object GetTarget (Delegate callback);
static member GetTarget : Delegate -> obj
Protected Shared Function GetTarget (callback As Delegate) As Object

パラメーター

callback
Delegate

ターゲットを取得するデリゲート。

戻り値

コールバック ターゲットである Object を返します。 コールバックが静的オブジェクトを表す場合、これは null を返すことがあります。

例外

callbacknull です。

適用対象