Delen via


SmoCollectionBase.GetEnumerator Method

Returns an IEnumerator interface that allows you to iterate through the objects in the collection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Overridable Function GetEnumerator As IEnumerator
'Usage
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

Return Value

Type: System.Collections.IEnumerator
An IEnumerator system interface for the referenced collection object.

Implements

IEnumerable.GetEnumerator()

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.