SPContext.RootFolderUrl property
取得目前內容中的根資料夾的 URL。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property RootFolderUrl As String
Get
'用途
Dim instance As SPContext
Dim value As String
value = instance.RootFolderUrl
public string RootFolderUrl { get; }
Property value
Type: System.String
字串,包含伺服器相對 URL 或空字串,如果在目前內容中沒有根資料夾。