다음을 통해 공유


SPSiteLookupProvider.SiteExists Method

Checks whether the specified site collection exists in the local server farm.

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

Syntax

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

returnValue = instance.SiteExists(id)
public abstract bool SiteExists(
    Guid id
)

Parameters

  • id
    Type: System.Guid

    The GUID of the site collection.

Return Value

Type: System.Boolean
Boolean
true if the site collection exists in the local server farm; otherwise, false.

See Also

Reference

SPSiteLookupProvider Class

SPSiteLookupProvider Members

Microsoft.SharePoint.Administration Namespace