共用方式為


GetEnumerator 方法

Gets an enumerator that can iterate through the list of objects.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function GetEnumerator As IEnumerator
'用途
Dim instance As ConfigPropertyCollection
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public IEnumerator GetEnumerator()
public:
virtual IEnumerator^ GetEnumerator() sealed
abstract GetEnumerator : unit -> IEnumerator 
override GetEnumerator : unit -> IEnumerator 
public final function GetEnumerator() : IEnumerator

傳回值

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

實作

IEnumerable. . :: . .GetEnumerator() () () ()

範例

使用集合