Share via


SPUtility.ContextLayoutsFolder property

Getsthe versioned layouts folder for the context site.

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

Syntax

'Declaration
Public Shared ReadOnly Property ContextLayoutsFolder As String
    Get
'Usage
Dim value As String

value = SPUtility.ContextLayoutsFolder
public static string ContextLayoutsFolder { get; }

Property value

Type: System.String
The string representing the versioned layouts folder.

Remarks

For site.CompatibilityLevel greater than or equal to 15 (for example, "_layouts/15"), ContextLayoutsFolder returns "_layouts/site.CompatibilityLevel". Otherwise, the method returns "_layouts".

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace