Share via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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