DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomLicence Class / ActivateOnLine Method
The key provided by Medical Connections in the format 'XYZ-1111-2222-3333', allowing you to activate DicomObjects for specific functions
An optional string identifying this system and/or the institution at which this copy is being activated. This optional parameter can be empty
Another optional string with the same type of information as 'activationInfo1'/>
An out parameter, into which an explanation of the result is placed.



In This Topic
    ActivateOnLine Method
    In This Topic
    Attempt to obtain a standard DicomObjects licence online
    Syntax
    'Declaration
     
    
    Public Shared Function ActivateOnLine( _
       ByVal licenceKey As String, _
       ByVal activationInfo1 As String, _
       ByVal activationInfo2 As String, _
       ByRef result As String _
    ) As DicomLicence
    'Usage
     
    
    Dim licenceKey As String
    Dim activationInfo1 As String
    Dim activationInfo2 As String
    Dim result As String
    Dim value As DicomLicence
     
    value = DicomLicence.ActivateOnLine(licenceKey, activationInfo1, activationInfo2, result)

    Parameters

    licenceKey
    The key provided by Medical Connections in the format 'XYZ-1111-2222-3333', allowing you to activate DicomObjects for specific functions
    activationInfo1
    An optional string identifying this system and/or the institution at which this copy is being activated. This optional parameter can be empty
    activationInfo2
    Another optional string with the same type of information as 'activationInfo1'/>
    result
    An out parameter, into which an explanation of the result is placed.

    Return Value

    A valid DicomLicence object if the activation succeeded or if already activated using Licence string.

    null if the activation failed.

    Remarks

    This is the main method used to activate a DicomObjects Licence, and is used both explicitly by users and internally when requested

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

    If a Licence has previously been activated on the same machine, using the same Licence string, then the method returns the existing licence, but the fact is noted in the Result

    The Licence server to be contacted is specified by LicenceServer, 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