次の方法で共有


SPUtility.GetControlTemplatesFolder method

return versioned controlTemplates folder for the specified web. return "_controltemplates/site.CompatibilityLevel" if site.CompatibilityLevel >= 15 otherwise, return "_controltemplates" (when CompatibilityLevel is 14)

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

Syntax

'Declaration
Public Shared Function GetControlTemplatesFolder ( _
    site As SPSite _
) As String
'Usage
Dim site As SPSite
Dim returnValue As String

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

Parameters

Return value

Type: System.String

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace