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.
Returns the versioned layouts folder for the specified site collection.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetLayoutsFolder ( _
site As SPSite _
) As String
'Usage
Dim site As SPSite
Dim returnValue As String
returnValue = SPUtility.GetLayoutsFolder(site)
public static string GetLayoutsFolder(
SPSite site
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite whose CompatibilityLevel is being used.
Return value
Type: System.String
The name of the versioned layouts folder for the site collection.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The site parameter is a null reference (Nothing in Visual Basic). |
Remarks
If site.CompatibilityLevel is greater than or equal to 15, GetLayoutsFolder(SPWeb) returns "_layouts/site.CompatibilityLevel". Otherwise, returns "_layouts".