SPWebEventProperties.NewServerRelativeUrl property

Gets a server-relative URL that represents the address of the Web site after it has been moved.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property NewServerRelativeUrl As String
    Get
'Usage
Dim instance As SPWebEventProperties
Dim value As String

value = instance.NewServerRelativeUrl
public string NewServerRelativeUrl { get; }

Property value

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

Remarks

The NewServerRelativeUrl property throws an InvalidOperationException if applied to a Web site deletion event.

See also

Reference

SPWebEventProperties class

SPWebEventProperties members

Microsoft.SharePoint namespace