Share via


SPSiteLookupProvider.RemoveSite Method

Removes the site map entry for the specified site collection.

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

Syntax

'Declaration
Public MustOverride Function RemoveSite ( _
    siteId As Guid _
) As Boolean
'Usage
Dim instance As SPSiteLookupProvider
Dim siteId As Guid
Dim returnValue As Boolean

returnValue = instance.RemoveSite(siteId)
public abstract bool RemoveSite(
    Guid siteId
)

Parameters

  • siteId
    Type: System.Guid

    The System.Guid of the site collection to remove.

Return Value

Type: System.Boolean
true if the entry existed when the method was called; otherwise, false.

See Also

Reference

SPSiteLookupProvider Class

SPSiteLookupProvider Members

Microsoft.SharePoint.Administration Namespace