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

代表正在被點名。

傳回

Delegate.InvocationListEnumerator<TDelegate> A 遵循 IEnumerable 模式,因此可在 C# 的「foreach」敘述中取得此代理的呼叫目標,無需配置。 該方法回傳一個空的列舉子以表示 null 委托。

備註

調查員回傳的代表順序與現任代表所代表的方法順序相同。

適用於