Web.ServerRelativeUrl - Propriété
Gets or sets the server-relative URL for the Web site.
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 Property ServerRelativeUrl As String
Get
Set
'Utilisation
Dim instance As Web
Dim value As String
value = instance.ServerRelativeUrl
instance.ServerRelativeUrl = value
public string ServerRelativeUrl { get; set; }
Valeur de propriété
Type : System.String
A string that contains the server-relative URL.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The site is a top-level site. Error code: - 2147024809. |
Remarques
It must not be une référence Null (Rien dans Visual Basic). It must not contain any of the reserved URLs. It must not contain the following illegal characters: [!#$&'+:<>?\\{|}~]|(//)|(\.\.)|(/_)|(/wpresources$)|(/wpresources/).