共用方式為


OlapInfoHierarchyCollection.IEnumerable.GetEnumerator 方法

Gets an enumerator that iterates through the OlapInfoHierarchyCollection.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Private Function GetEnumerator As IEnumerator 
    Implements IEnumerable.GetEnumerator
'用途
Dim instance As OlapInfoHierarchyCollection 
Dim returnValue As IEnumerator 

returnValue = CType(instance, IEnumerable).GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
private:
virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
private abstract GetEnumerator : unit -> IEnumerator  
private override GetEnumerator : unit -> IEnumerator
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

傳回值

型別:System.Collections.IEnumerator
An IEnumerator object that can be used to iterate through the OlapInfoHierarchyCollection.

實作

IEnumerable.GetEnumerator()

請參閱

參考

OlapInfoHierarchyCollection 類別

Microsoft.AnalysisServices.AdomdClient 命名空間