Export (0) Print
Expand All

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)

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 a null reference (Nothing in Visual Basic).

Show:
© 2014 Microsoft