AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

CMSDomainEngine..::..GetDomainByID Method (Int32, Boolean)

Fill a domain object by Id, loadDomainPaths fills the DomainPaths Property which is null by default Filling the DomainPaths property is heavier (db/data) and not needed in most instances.

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

Syntax


public Domain GetDomainByID(
	int domainID,
	bool loadDomainPaths
)

Parameters

domainID
Type: Int32
key to domain to be loaded
loadDomainPaths
Type: Boolean
fill the domainpaths property (extra db call)

Return Value

A Domain