共用方式為


SPMigratableSiteCollection.Clear Method

NOTE: This API is now obsolete.

Removes all site collections from 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 Sub Clear
'Usage
Dim instance As SPMigratableSiteCollection

instance.Clear()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")]
public void Clear()

Implements

ICollection<T>.Clear()

See Also

Reference

SPMigratableSiteCollection Class

SPMigratableSiteCollection Members

Microsoft.SharePoint.Administration Namespace