共用方式為


GetEnumerator 方法

Gets an Enumerator for iterating through the collection.

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

語法

'宣告
Public Function GetEnumerator As HierarchyCollection..::..Enumerator
'用途
Dim instance As HierarchyCollection
Dim returnValue As HierarchyCollection..::..Enumerator

returnValue = instance.GetEnumerator()
public HierarchyCollection..::..Enumerator GetEnumerator()
public:
HierarchyCollection..::..Enumerator GetEnumerator()
member GetEnumerator : unit -> HierarchyCollection..::..Enumerator 
public function GetEnumerator() : HierarchyCollection..::..Enumerator