File.ServerRelativeUrl - Propriété
Gets the relative URL of the file based on the URL for the server.
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 File
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 |
---|---|
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |
Remarques
The ServerRelativeUrl property returns a string in the following form, which excludes the name of the server or root folder: /Site_Name/Subsite_Name/Folder_Name/File_Name.
It must not be une référence Null (Rien dans Visual Basic). It must be a URL of server relative form.