SPSite.ServerRelativeUrl - Propriété

Obtient l’URL relative de serveur du site web racine dans la collection de sites.

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

Syntaxe

'Déclaration
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Utilisation
Dim instance As SPSite
Dim value As String

value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }

Valeur de propriété

Type : System.String
Chaîne qui contient l'URL.

Remarques

La propriété ServerRelativeUrl contient une barre oblique (« / »).

Voir aussi

Référence

SPSite classe

SPSite - Membres

Microsoft.SharePoint - Espace de noms