SPUtility.GetControlTemplatesFolder method
會傳回指定的 web 版本 controlTemplates 資料夾。如果傳回"_controltemplates/site.CompatibilityLevel"site.CompatibilityLevel > = 15,否則傳回"_controltemplates"(當 CompatibilityLevel 14)
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetControlTemplatesFolder ( _
site As SPSite _
) As String
'用途
Dim site As SPSite
Dim returnValue As String
returnValue = SPUtility.GetControlTemplatesFolder(site)
public static string GetControlTemplatesFolder(
SPSite site
)
參數
- site
Type: Microsoft.SharePoint.SPSite
傳回值
Type: System.String