Share via


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.String

    The 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.

See also

Reference

SPWebApplication class

SPWebApplication members

GetDeletedSites overload

Microsoft.SharePoint.Administration namespace