Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.ServerRelativeUrl property

Gets or sets the server-relative URL for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(FixedId = "illegalchars", Type = ClientCallableConstraintType.Custom, 
	Value = "It MUST NOT contain any of the following characters: ([~"#%&\*:<>?\\{|}\x7F])|(\.\.)|(//)|(^\.)|(\.$)|(^_)")]
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(FixedId = "urlReserved", Type = ClientCallableConstraintType.Custom, 
	Value = "It MUST NOT contain any of the reserved Urls.")]
public string ServerRelativeUrl { get; set; }

Property value

Type: System.String
A string that contains the server-relative URL.
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.