Arbitrans - myDATA Library

Activation Class

Class Activation
By this class you can manage your subscription.

Namespace:  arbitrans_myDATA_framework
Assembly:  arbitrans_myDATA_framework (in arbitrans_myDATA_framework.dll)

Syntax


public class Activation
Public Class Activation

Remarks


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 a very first time:
1. SendInvoices.SendInvoice
2. SendIncomeClassifications.sendIncomeClassification
3. SendExpensesClassification.sendExpensesClassifications
4. RequestTransmittedDocs.Request
5. RequestDocs.Request

Until the Deployment Location is activated, you cannot use the following:
1. myDATATools Class
2. ExchangeRates Class
3. Refresh
4. getSubscriptionInfo
5. DeactivateLicense

Examples


C#
// ---------------------- ACTIVATE A SUBSCRIPTION ----------------------
Activation act = new Activation();
string result = act.ActivateSubscription("Arbitrans User", "Arbitrans Key");



// --------------------- DEACTIVATE A SUBSCRIPTION ---------------------
// WARNING: DEACTIVATING A SUBSCRIPTION FROM THE CURRENT MACHINE, DOES NOT
//          RELEASE THE DEPLOYMENT LOCATION!
//          IF YOU DEACTIVATE A SUBSCRIPTION BY MISTAKE, YOU LOST A
//          DEPLOYMENT LOCATION!
// The purpose of deactivating a subscription, is only to activate a new one
// after the renewal/purchase of a subscription.
// The renewal of your subscription, resets the Deployment Locations.
Activation act = new Activation();
string result = act.DeactivateLicense();
VB.NET
' ---------------------- ACTIVATE A SUBSCRIPTION ----------------------
Dim act as Activation = New Activation()
Dim result as String = act.ActivateSubscription("Arbitrans User", "Arbitrans Key")



' --------------------- DEACTIVATE A SUBSCRIPTION ---------------------
' WARNING: DEACTIVATING A SUBSCRIPTION FROM THE CURRENT MACHINE, DOES NOT
'          RELEASE THE DEPLOYMENT LOCATION!
'          IF YOU DEACTIVATE A SUBSCRIPTION BY MISTAKE, YOU LOST A
'          DEPLOYMENT LOCATION!
' The purpose of deactivating a subscription, is only to activate a new one
' after the renewal/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()

Inheritance Hierarchy


Object
  arbitrans_myDATA_framework..::..Activation