共用方式為


SPUtility.ContextControlTemplatesFolder property

會傳回 contextSite 版本 controlTemplates 資料夾。如果沒有任何內容網站,會傳回目前的主要版本 controlTemplates 資料夾

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

Syntax

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

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

Property value

Type: System.String

請參閱

參照

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace