Activation Class

Class Activation 
Through this class, you can manage your subscription. 
Public Class Activation
This language is not supported or no code example is available.
public class Activation
This language is not supported or no code example is available.
Name Description
Public constructor Activation() Creates a new instance of the Activation class.
Top
Methods
 
Name Description
Public method ActivateSubscription(string, string) This activates the subscription.
Public method DeactivateLicense() Deactivate the licence on the current machine.  
This method is used when you want to deactivate the TRIAL and activate your paid Subscription, or once your subscription has been renewed. 
This method DOES NOT allow you to remove the Deployment Location from your Subscription.
Public method Refresh() Refresh your Subscription.
Public method getAllDLInfo(string) Gets information of all activated DL.
Public method getDLInfo(string) Gets the DL information. Returns an array containing informations about the current DL.
Public method getDLInfo(string, int) Gets the DL information of a specific PC.
Public method getSubscriptionInfo() Get your Subscription Info
Public method lockDL(string, int) Use this function to lock a specific DL
Public method unlockDL(string, int) Use this function to unlock a specific DL
Top
Example
 

To activate a Subscription properly, execute the method ActivateSubscription 
 
A subscription can also be activated automatically to a Deployment Location right after you execute one of the following Methods for the very first time: 
1. SendInvoices.SendInvoice 
2. SendClassifications.Send 
3. RequestInvoices.Request 
Until the Deployment Location is activated, you cannot use the following: 
1. myDATATools Class 
2. ExchangeRates Class 
3. Refresh 
4. getSubscriptionInfo 
5. DeactivateLicense

 // ---------------------- ACTIVATE A SUBSCRIPTION ----------------------
 Activation act = new Activation();
 string result = act.ActivateSubscription("Arbitrans User", "Arbitrans Key");
 
 
 
 // --------------------- DEACTIVATE A SUBSCRIPTION ---------------------
 // WARNING: THE DEPLOYMENT LOCATION IS NOT RELEASED BY DEACTIVATING A
 //          SUBSCRIPTION FROM THE CURRENT MACHINE!
 //          If you accidentally deactivate a subscription, you will lose
 //          a deployment location!
 // The purpose of deactivating a subscription is only to activate a new
 // one after the renewal or purchase of a subscription.
 // The renewal of your subscription resets the Deployment Locations.
 Activation act = new Activation();
 string result = act.DeactivateLicense();
 
 
 
 					
This language is not supported or no code example is available.
 ' ---------------------- ACTIVATE A SUBSCRIPTION ----------------------
 Dim act as Activation = New Activation()
 Dim result as String = act.ActivateSubscription("Arbitrans User", "Arbitrans Key")
 
 
 
 ' --------------------- DEACTIVATE A SUBSCRIPTION ---------------------
 ' WARNING: THE DEPLOYMENT LOCATION IS NOT RELEASED BY DEACTIVATING A
 '          SUBSCRIPTION FROM THE CURRENT MACHINE!
 '          If you accidentally deactivate a subscription, you will lose
 '          a deployment location!
 ' The purpose of deactivating a subscription is only to activate a new
 ' one after the renewal or purchase of a subscription.
 ' The renewal of your subscription resets the Deployment Locations.
 Dim act as Activation = new Activation()
 Dim result as String = act.DeactivateLicense()
 					
This language is not supported or no code example is available.
ArbitransMyData.Activation

.NET Framework

Supported in: 3.5 or newer

In this article

Definition