AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

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

Returns a request-scoped clone of the domain with the given Id. DomainPaths are always populated on the cached entries; the loadDomainPaths parameter is retained for source compatibility and is now a no-op.

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
Ignored. The cached domain always has DomainPaths populated.

Return Value

A per-request Domain clone, or null if no domain with that Id exists.