SPView.ServerRelativeUrl Property

Gets the server-relative URL of the view page.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.ServerRelativeUrl)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotEmpty)> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Usage
Dim instance As SPView
Dim value As String

value = instance.ServerRelativeUrl
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.ServerRelativeUrl)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
public string ServerRelativeUrl { get; }

Property Value

Type: System.String
A string that contains the URL.

See Also

Reference

SPView Class

SPView Members

Microsoft.SharePoint Namespace