다음을 통해 공유


SPContext.RootFolderUrl Property

Gets the URL of the root folder for the current context.

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

Syntax

'Declaration
Public ReadOnly Property RootFolderUrl As String
    Get
'Usage
Dim instance As SPContext
Dim value As String

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

Property Value

Type: System.String
A string that contains a server-relative URL or an empty string if there is no root folder in the current context.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace