This topic has not yet been rated - Rate this topic

SPWebEventProperties.ServerRelativeUrl Property

Gets a server-relative URL that represents the address of the Web site before it was moved, or gets the current server-relative URL if a Web site is renamed.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public string ServerRelativeUrl { get; }

Property Value

Type: System.String
A string that contains the server-relative URL of the Web site.

For Before events, this value is the URL of the parent Web; for After events, it is the value of the subweb. In the case of the root Web, this value is null.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ