次の方法で共有


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)

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