SPWebApplication.GetDeletedSites method (SPDeletedSiteQuery)
Gets a list of deleted sites using the specified query.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetDeletedSites ( _
query As SPDeletedSiteQuery _
) As SPDeletedSiteCollection
'Usage
Dim instance As SPWebApplication
Dim query As SPDeletedSiteQuery
Dim returnValue As SPDeletedSiteCollection
returnValue = instance.GetDeletedSites(query)
public SPDeletedSiteCollection GetDeletedSites(
SPDeletedSiteQuery query
)
Parameters
query
Type: Microsoft.SharePoint.Administration.SPDeletedSiteQueryThe query used to specify the deleted sites to retrieve.
Return value
Type: Microsoft.SharePoint.Administration.SPDeletedSiteCollection
The list of deleted sites.
Remarks
This method gets a list of deleted sites using the query specified by the query parameter.