Поделиться через


Метод GetEnumerator

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

Этот API-интерфейс несовместим с CLS. 

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
<CLSCompliantAttribute(False)> _
Public Function GetEnumerator As IEnumerator(Of EventProperty)
'Применение
Dim instance As EventPropertyCollection
Dim returnValue As IEnumerator(Of EventProperty)

returnValue = instance.GetEnumerator()
[CLSCompliantAttribute(false)]
public IEnumerator<EventProperty> GetEnumerator()
[CLSCompliantAttribute(false)]
public:
virtual IEnumerator<EventProperty^>^ GetEnumerator() sealed
[<CLSCompliantAttribute(false)>]
abstract GetEnumerator : unit -> IEnumerator<EventProperty> 
[<CLSCompliantAttribute(false)>]
override GetEnumerator : unit -> IEnumerator<EventProperty> 
public final function GetEnumerator() : IEnumerator<EventProperty>

Возвращаемое значение

Тип System.Collections.Generic. . :: . .IEnumerator< (Of < ( <'EventProperty> ) > ) >
An IEnumerator object value that can be used to iterate through the collection.

Реализует интерфейс

IEnumerable< (Of < ( <'T> ) > ) >. . :: . .GetEnumerator() () () ()