How do we inform the user when a feature does not have an invalid license e.g. the feature is not included in the licenses in the license store or some usage limit has been exceed?
When a method linked to a feature without a valid installed license, you can use several approaches in your code to inform the user:
- Query the license store and see which features are available in the license. Then disable the functionality or inform the user about this
- Encapsulate the method with a try catch and catch the “not allowed to use feature” exception thrown by SLPS Runtime and inform the user using an appropriate message box etc
- Rather than try to capture the exception at the method level, capture the unhandled exception at the application level.