XdsObjects Help file
XdsObjects Namespace / XdsLicense Class / ActivateOnLine Method
The string provided by Medical Connections, allowing you to activate XdsObjects
A string identifying the PC and or institution at which this copy is being activated
A second string with the same function
An "out" parameter, into which an explantion of the result is placed.



ActivateOnLine Method
Attempt to obtain an XdsObjects license on-line
Syntax
Public Shared Function ActivateOnLine( _
   ByVal AuthorisationString As String, _
   ByVal CustomerInfo1 As String, _
   ByVal CustomerInfo2 As String, _
   ByRef Result As String _
) As XdsLicense
Dim AuthorisationString As String
Dim CustomerInfo1 As String
Dim CustomerInfo2 As String
Dim Result As String
Dim value As XdsLicense
 
value = XdsLicense.ActivateOnLine(AuthorisationString, CustomerInfo1, CustomerInfo2, Result)

Parameters

AuthorisationString
The string provided by Medical Connections, allowing you to activate XdsObjects
CustomerInfo1
A string identifying the PC and or institution at which this copy is being activated
CustomerInfo2
A second string with the same function
Result
An "out" parameter, into which an explantion of the result is placed.

Return Value

A valid XdsLicense object if the activation succeeded or if already activated using this Authorisation string.

null if the activation failed.

Remarks

This is the main method used to activate an XdsObjects license, and is used both explicitly by developers and internally by the LicenseDialog when so requested.

The result indicates whether the method succeeded, and further information (whether successful or not) is available in the Result parameter

If a license has previously been activated on the same machine, using the same authorisation string, then the method returns true, but the fact is noted in the Result

The license server to be contacted is specified by LicenseServer, but this should not normally be changed.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also