SPUtility properties

The SPUtility type exposes the following members.

Properties

  Name Description
Public propertyStatic member ContextCompatibilityLevel Getsthe compatibility level of the context site.
Public propertyStatic member ContextControlTemplatesFolder return versioned controlTemplates folder for the contextSite. if there is no context site, return controlTemplates folder for current major version
Public propertyStatic member ContextImagesRoot Returns the versioned images folder for the contextSite. If there is no context site, returns images folder for current major version.
Public propertyStatic member ContextLayoutsFolder Getsthe versioned layouts folder for the context site.
Public propertyStatic member CurrentThemeFolderName Gets the name of the current theme folder.
Public propertyStatic member DefaultSiteIconFileName
Public propertyStatic member DeveloperDashboardIsEnabled Gets the developer dashboard enabled-status for the current request.
Public propertyStatic member IsCompatibilityLevel15Up
Public propertyStatic member LAYOUTS_LATESTVERSION
Public propertyStatic member OriginalServerRelativeRequestPath In the context of a web request, WSS will sometimes rewrite urls in _layouts and a few other file system directories. This property returns the original path before it was rewritten, which is useful if you need to get the subweb from which a layouts page was loaded. For example, when you open the link /subweb/_layouts/settings.aspx, WSS will rewrite the request url to /_layouts/settings.aspx, which is where the file is actually stored on the filesystem.
Public propertyStatic member OriginalServerRelativeRequestUrl Gets the original URL after the Microsoft SharePoint Foundation server has re-written it.
Public propertyStatic member RELATIVE_LAYOUTS_LATESTVERSION

Top

See also

Reference

SPUtility class

Microsoft.SharePoint.Utilities namespace