Freigeben über


Web.ServerRelativeUrl-Eigenschaft

Gets or sets the server-relative URL for the Web site.

Namespace:  Microsoft.SharePoint.Client
Assemblys:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property ServerRelativeUrl As String
    Get
    Set
'Usage
Dim instance As Web
Dim value As String

value = instance.ServerRelativeUrl

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

Eigenschaftswert

Typ: System.String
A string that contains the server-relative URL.

Ausnahmen

Ausnahme Bedingung
ArgumentException

The site is a top-level site. Error code: - 2147024809.

Hinweise

It must not be ein Nullverweis (Nothing in Visual Basic). It must not contain any of the reserved URLs. It must not contain the following illegal characters: [!#$&'+:<>?\\{|}~]|(//)|(\.\.)|(/_)|(/wpresources$)|(/wpresources/).

Siehe auch

Referenz

Web Klasse

Web-Member

Microsoft.SharePoint.Client-Namespace