SPWebApplication.GetDeletedSites method (String)
Gets a list of deleted sites with the specified prefix of a server-relative URL.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetDeletedSites ( _
sitePath As String _
) As SPDeletedSiteCollection
'Usage
Dim instance As SPWebApplication
Dim sitePath As String
Dim returnValue As SPDeletedSiteCollection
returnValue = instance.GetDeletedSites(sitePath)
public SPDeletedSiteCollection GetDeletedSites(
string sitePath
)
Parameters
sitePath
Type: System.StringThe prefix of a server-relative URL of the deleted sites.
Return value
Type: Microsoft.SharePoint.Administration.SPDeletedSiteCollection
The list of deleted sites.
Remarks
This method gets a list of deleted sites with the prefix of a server-relative URL of the site collection specified by the sitePath parameter.