Sets the current computer to work in offline mode. When working in offline mode, the computer no longer connects to the floating license database. License information is stored locally on the end user system.
To configure the maximum amount of time a user can work offline, set the QlmFloatingLicenseMaxOfflineDuration property in the Protect Your Application wizard or set the QlmLicense.FloatingLicenseMaxOfflineDuration property programmatically.
When the MaxOfflineDuration period is exceeded, the license validation will attempt to contact the floating license database. If it cannot contact the DB, a violation event will be fired.
C#: bool SetOfflineMode(bool offline, out string errorMessage)
offline - flag to set the computer offline or online. A value of true sets the computer offline.
errorMessage - returned error message if the operation failed.
true if the operation succeeded.