Freigeben über


SPSite.Exists-Methode (Uri)

Returns a Boolean value that indicates whether the specified site collection exists.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function Exists ( _
    uri As Uri _
) As Boolean
'Usage
Dim uri As Uri
Dim returnValue As Boolean

returnValue = SPSite.Exists(uri)
public static bool Exists(
    Uri uri
)

Parameter

  • uri
    Typ: System.Uri

    A System.Uri object that represents the Uniform Resource Identifier (URI) of the site collection.

Rückgabewert

Typ: System.Boolean
true if the site exists; otherwise, false.

Siehe auch

Referenz

SPSite Klasse

SPSite-Member

Exists-Überladung

Microsoft.SharePoint-Namespace