Partilhar via


SPWebApplication.GetDeletedSites Method (Guid)

Gets a list of deleted sites with the specified site collection identifier (ID).

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function GetDeletedSites ( _
    siteId As Guid _
) As SPDeletedSiteCollection
'Usage
Dim instance As SPWebApplication
Dim siteId As Guid
Dim returnValue As SPDeletedSiteCollection

returnValue = instance.GetDeletedSites(siteId)
public SPDeletedSiteCollection GetDeletedSites(
    Guid siteId
)

Parameters

  • siteId
    Type: System.Guid

    The ID of the list of sites.

Return Value

Type: Microsoft.SharePoint.Administration.SPDeletedSiteCollection
The list of deleted sites.

Remarks

This method gets a list of deleted sites with the site collection ID specified by the siteId parameter.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

GetDeletedSites Overload

Microsoft.SharePoint.Administration Namespace