Delegate.EnumerateInvocationList<TDelegate>(TDelegate) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為這個代表的召喚目標取得一個列舉器。
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 委托。
備註
調查員回傳的代表順序與現任代表所代表的方法順序相同。