Class LicensingInitialization
Helper functions for licensing, which sometimes has to be interactive since the user must login to their license account if no credentials are on file.
Inherited Members
Namespace: DesignData.SDS2.WinForms
Assembly: DesignData.SDS2.WinForms.dll
Syntax
public sealed class LicensingInitialization
Constructors
LicensingInitialization()
Helper functions for licensing, which sometimes has to be interactive since the user must login to their license account if no credentials are on file.
Declaration
public LicensingInitialization()
Methods
Checkout()
If there are stored credentials, checkout a license right away. If not, prompt the user (with a winforms dialog) for credentials and then ckeckout a license. Those credentials will be stored for the next use.
This helper, or equivalent code, must be called before doing anything else with the SDS2 API.
Equivalent code:
if(!Licensing.HasStoredCredentials)
{
Licensing.SetCredentials("a license username", "their password");
}
Licensing.Checkout();
Declaration
public static bool Checkout()
Returns
Type | Description |
---|---|
bool |