BaseInfoCheckLicense Method |
Checks the object license. Returns true if the licensing conditions for this object were matched.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 12.0.0
Syntax 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:
BooleanRemarks
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