共用方式為


SPUtility.GetLayoutsFolder method (SPSite)

會傳回指定的網站集合的 [建立版本的版面配置] 資料夾。

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

Syntax

'宣告
Public Shared Function GetLayoutsFolder ( _
    site As SPSite _
) As String
'用途
Dim site As SPSite
Dim returnValue As String

returnValue = SPUtility.GetLayoutsFolder(site)
public static string GetLayoutsFolder(
    SPSite site
)

參數

傳回值

Type: System.String
網站集合建立版本的版面配置] 資料夾的名稱。

Exceptions

Exception Condition
ArgumentNullException

site參數,則a null reference (Nothing in Visual Basic)。

備註

如果 site.CompatibilityLevel 為大於或等於 15, GetLayoutsFolder(SPWeb)會傳回"_layouts/site.CompatibilityLevel"。否則,會傳回"_layouts"。

請參閱

參照

SPUtility class

SPUtility members

GetLayoutsFolder overload

Microsoft.SharePoint.Utilities namespace