共用方式為


SPFolder.ServerRelativeUrl Property

Gets the server-relative URL of the folder.

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)> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Usage
Dim instance As SPFolder
Dim value As String

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

Property Value

Type: System.String
The server-relative URL of the folder.

See Also

Reference

SPFolder Class

SPFolder Members

Microsoft.SharePoint Namespace