GetEnumerator 方法
Returns an IEnumerator interface that allows you to iterate through the objects in the collection.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Overridable Function GetEnumerator As IEnumerator
'用途
Dim instance As SmoCollectionBase
Dim returnValue As IEnumerator
returnValue = instance.GetEnumerator()
public virtual IEnumerator GetEnumerator()
public:
virtual IEnumerator^ GetEnumerator()
abstract GetEnumerator : unit -> IEnumerator
override GetEnumerator : unit -> IEnumerator
public function GetEnumerator() : IEnumerator
傳回值
型別:System.Collections. . :: . .IEnumerator
An IEnumerator system interface for the referenced collection object.
實作
備註
只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。