$Market.GetLicenseLimits
Overview¶
int $Market.GetLicenseLimits ( [ type ], [ defaultValue ] )
Returns the license limit value if license is available.
Arguments¶
String type Name of limit type. This value depends on license content and can be null.
Number defaultValue Default value of limit if no license found.
Remarks¶
If no license is found, this method returns the default value if specified, otherwise returns 0.
If process is not installed from market store return value is default value if specified, otherwise returns 2.147,483,647.
Examples¶
License Check;
if ( $Market.GetLicenseLimits('TransactionCount', 10) < $Xml.Count('Transactions/Transaction') ) {
$Xml.SetValue('Licensed',true);
} else {
$Xml.SetValue('Licensed',false);
}