共用方式為


SPMigratableSiteCollection.GetEnumerator Method

NOTE: This API is now obsolete.

Returns an enumerator to iterate through the collection.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")> _
Public Function GetEnumerator As IEnumerator(Of SPSite)
'Usage
Dim instance As SPMigratableSiteCollection
Dim returnValue As IEnumerator(Of SPSite)

returnValue = instance.GetEnumerator()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")]
public IEnumerator<SPSite> GetEnumerator()

Return Value

Type: System.Collections.Generic.IEnumerator<SPSite>
A System.Collections.IEnumerator interface.

Implements

IEnumerable<T>.GetEnumerator()

See Also

Reference

SPMigratableSiteCollection Class

SPMigratableSiteCollection Members

Microsoft.SharePoint.Administration Namespace