Share via


GetEnumerator 方法 (String, String)

擴充 IEnumerable<T> 介面,可讓您指定可列舉事件來源的查詢名稱和描述。

命名空間:  Microsoft.ComplexEventProcessing.Linq
組件:  Microsoft.ComplexEventProcessing (在 Microsoft.ComplexEventProcessing.dll 中)

語法

IEnumerator<T> GetEnumerator(
    string queryName,
    string queryDescription
)

參數

傳回值

型別:System.Collections.Generic. . :: . .IEnumerator< (Of < ( <'T> ) > ) >
傳回 IEnumerator<(Of <(<'T>)>)>

備註

查詢名稱可以在偵錯時,於「StreamInsight 事件流程偵錯工具」中用來尋找適當的查詢執行個體。如果您針對 queryName 提供 null 值,或是呼叫基底介面的 GetEnumerator 方法,則會自動為查詢產生唯一的名稱。

否則此介面描述的合約與基底 IEnumerable<T> 介面一致。如需 ICepEnumerable<T> 擴充之介面的詳細資訊,請參閱 documentation for the IEnumerable<T> interface in the MSDN Library (英文)。

請參閱

參考

ICepEnumerable< (Of < ( <'T> ) > ) > 介面

GetEnumerator 多載

Microsoft.ComplexEventProcessing.Linq 命名空間