SPMigratableSiteCollection.Remove method
NOTE: This API is now obsolete.
Removes the first occurrence of the specified site collection from the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")> _
Public Function Remove ( _
item As SPSite _
) As Boolean
'Usage
Dim instance As SPMigratableSiteCollection
Dim item As SPSite
Dim returnValue As Boolean
returnValue = instance.Remove(item)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")]
public bool Remove(
SPSite item
)
Parameters
item
Type: Microsoft.SharePoint.SPSiteAn SPSite object that represents the site collection to remove.
Return value
Type: System.Boolean
true if the operation succeeds; otherwise, false.
Implements
See also
Reference
SPMigratableSiteCollection class