Click or drag to resize
BaseInfoCheckLicense Method
Checks the object license. Returns true if the licensing conditions for this object were matched.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax
C#
protected virtual bool CheckLicense(
	ObjectActionEnum action = ObjectActionEnum.Read,
	string domainName = null
)

Parameters

action (Optional)
Type: CMS.DataEngineObjectActionEnum
Object action
domainName (Optional)
Type: SystemString
Domain name, if not set, uses current domain

Return Value

Type: Boolean
Remarks
When overriding this method you should take into consideration CurrentCheckLicense flag. In case of failing license check you should throw LicenseException instead of returning false.
See Also