SPSite.Exists - Méthode (Uri)

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

Espace de noms :  Microsoft.SharePoint
Assembly :  Microsoft.SharePoint (dans Microsoft.SharePoint.dll)

Syntaxe

'Déclaration
Public Shared Function Exists ( _
    uri As Uri _
) As Boolean
'Utilisation
Dim uri As Uri
Dim returnValue As Boolean

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

Paramètres

  • uri
    Type : System.Uri

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

Valeur renvoyée

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

Voir aussi

Référence

SPSite classe

SPSite - Membres

Exists - Surcharge

Microsoft.SharePoint - Espace de noms