Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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".