SPUtility properties

The SPUtility type exposes the following members.

  Name Description
Public property Static member ContextCompatibilityLevel Getsthe compatibility level of the context site.
Public property Static member ContextControlTemplatesFolder return versioned controlTemplates folder for the contextSite. if there is no context site, return controlTemplates folder for current major version
Public property Static member ContextImagesRoot Returns the versioned images folder for the contextSite. If there is no context site, returns images folder for current major version.
Public property Static member ContextLayoutsFolder Getsthe versioned layouts folder for the context site.
Public property Static member CurrentThemeFolderName Gets the name of the current theme folder.
Public property Static member DefaultSiteIconFileName
Public property Static member DeveloperDashboardIsEnabled Gets the developer dashboard enabled-status for the current request.
Public property Static member IsCompatibilityLevel15Up
Public property Static member LAYOUTS_LATESTVERSION
Public property Static 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 property Static member OriginalServerRelativeRequestUrl Gets the original URL after the Microsoft SharePoint Foundation server has re-written it.
Public property Static member RELATIVE_LAYOUTS_LATESTVERSION
Top
Show: