Share via


SPSiteCollection.IEnumerable<SPSite>.GetEnumerator method

Returns an enumerator to iterate through the collection.

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

Syntax

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

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

Return value

Type: System.Collections.Generic.IEnumerator<SPSite>
an enumerator to iterate through the collection.

Implements

IEnumerable<T>.GetEnumerator()

See also

Reference

SPSiteCollection class

SPSiteCollection members

Microsoft.SharePoint.Administration namespace