Partager via


Site.ServerRelativeUrl - Propriété

Gets the server-relative URL of the root Web site in the site collection.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

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

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

Valeur de propriété

Type : System.String
A string that contains the URL.

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions to perform the operation.

Remarques

The ServerRelativeUrl property contains a forward slash ("/").

Voir aussi

Référence

Site classe

Site - Membres

Microsoft.SharePoint.Client - Espace de noms