SPWeb.ServerRelativeUrl property
SharePoint 2013
Gets or sets the server-relative URL for the website.
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; }