다음을 통해 공유


CollectionBase.GetEnumerator Method

Returns an enumerator that can iterate through this CollectionBase instance.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Function GetEnumerator As IEnumerator
'Usage
Dim instance As CollectionBase
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
An IEnumerator interface used to iterate the CollectionBase object.

Implements

IEnumerable.GetEnumerator()

Remarks

GetEnumerator is a method that implements the foreach statement (For Each in Visual Basic). You do not need to call this method directly. This method implements the .NET Framework IEnumerable.GetEnumerator method. See the .NET Framework SDK for documentation about the IEnumerable.GetEnumerator method.

See Also

Reference

CollectionBase Class

CollectionBase Members

Microsoft.SharePoint.Publishing Namespace

CollectionBase

Count