Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetControlTemplatesFolder method
Collapse the table of content
Expand the table of content

SPUtility.GetControlTemplatesFolder method

SharePoint 2013

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)

public static string GetControlTemplatesFolder(
	SPSite site
)

Parameters

site
Type: Microsoft.SharePoint.SPSite

Return value

Type: System.String
Show:
© 2015 Microsoft