Delegate.EnumerateInvocationList<TDelegate>(TDelegate) メソッド

定義

このデリゲートの呼び出しターゲットの列挙子を取得します。

public:
generic <typename TDelegate>
 where TDelegate : Delegate static Delegate::InvocationListEnumerator<TDelegate> EnumerateInvocationList(TDelegate d);
public static Delegate.InvocationListEnumerator<TDelegate> EnumerateInvocationList<TDelegate> (TDelegate? d) where TDelegate : Delegate;
static member EnumerateInvocationList : 'Delegate -> Delegate.InvocationListEnumerator<'Delegate (requires 'Delegate :> Delegate)> (requires 'Delegate :> Delegate)
Public Shared Function EnumerateInvocationList(Of TDelegate As Delegate) (d As TDelegate) As Delegate.InvocationListEnumerator(Of TDelegate)

型パラメーター

TDelegate

パラメーター

d
TDelegate

戻り値

注釈

このメソッドは、IEnumerable パターンに従う Delegate.InvocationListEnumerator<TDelegate> を返します。そのため、C# 'foreach' ステートメントで使用して、割り当てなしでこのデリゲートの呼び出しターゲットを取得できます。 列挙子によって返されるデリゲートの順序は、現在のデリゲートがそれらのデリゲートが表すメソッドを呼び出す順序と同じです。 このメソッドは、デリゲートの空の列挙子 null 返します。

適用対象