Share via


Folder.ServerRelativeUrl Property

Gets the server-relative URL of the list folder.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Usage
Dim instance As Folder
Dim value As String

value = instance.ServerRelativeUrl
[RemoteAttribute]
public string ServerRelativeUrl { get; }

Property Value

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

Exceptions

Exception Condition
UnauthorizedAccessException

The current user has insufficient permissions. Error code: -2147024891.

Remarks

It must not be a null reference (Nothing in Visual Basic). It must be a URL of server-relative form.

See Also

Reference

Folder Class

Folder Members

Microsoft.SharePoint.Client Namespace