共用方式為


SPUtility.ContextLayoutsFolder property

Getsthe 建立版本的版面配置資料夾快顯網站。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared ReadOnly Property ContextLayoutsFolder As String
    Get
'用途
Dim value As String

value = SPUtility.ContextLayoutsFolder
public static string ContextLayoutsFolder { get; }

Property value

Type: System.String
字串,代表建立版本的版面配置] 資料夾。

備註

Site.CompatibilityLevel 大於或等於 15 的 (例如,"_layouts/15"), ContextLayoutsFolder會傳回"_layouts/site.CompatibilityLevel"。否則,此方法會傳回"_layouts"。

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace