共用方式為


SPSiteCollection.IEnumerable<SPSite>.GetEnumerator Method

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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>
Returns IEnumerator<T>.

Implements

IEnumerable<T>.GetEnumerator()

Remarks

Returns an enumerator to iterate through the collection.

See Also

Reference

SPSiteCollection Class

SPSiteCollection Members

Microsoft.SharePoint.Administration Namespace