Share via


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

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.

See also

Reference

SPWebApplication class

SPWebApplication members

GetDeletedSites overload

Microsoft.SharePoint.Administration namespace