Share via


SPWebCollection.IEnumerable<SPWeb>.GetEnumerator method

Returns a strongly typed enumerator that iterates through the collection.

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

Syntax

'Declaration
Private Function GetEnumerator As IEnumerator(Of SPWeb)
    Implements IEnumerable(Of SPWeb).GetEnumerator
'Usage
Dim instance As SPWebCollection
Dim returnValue As IEnumerator(Of SPWeb)

returnValue = CType(instance, IEnumerable(Of SPWeb)).GetEnumerator()
IEnumerator<SPWeb> IEnumerable<SPWeb>.GetEnumerator()

Return value

Type: System.Collections.Generic.IEnumerator<SPWeb>
An enumerator that iterates through the collection.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

SPWebCollection class

SPWebCollection members

Microsoft.SharePoint namespace