AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

CMSAdminEngine..::..GetSection Method (SQL, Int32, String)

Retrieves a Section by name for the specified domain, falling back to a global section if not found. Results are cached per-request in HttpContext.Items.

Namespace:  AdvantageCMS.Core.Admin.Engine
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static Section GetSection(
	SQL currentSql,
	int domainId,
	string sectionName
)

Parameters

currentSql
Type: AdvantageCMS.Data..::..SQL
An active SQL database connection.
domainId
Type: Int32
The domain identifier to scope the section lookup.
sectionName
Type: String
The name of the section to retrieve.

Return Value

The matching Section, or null if not found.