DicomObjects.NetStandard Documentation
DicomObjects Namespace / DicomLicence Class / ActivateSigned Method
The key provided by Medical Connections in the format 'SK-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.
Optional expiryDate date for the licence to be generated. Default is controlled by the licence key itself



In This Topic
    ActivateSigned Method
    In This Topic
    Attempt to obtain a signed DicomObjects licence online for this assembly. Our standalone application signer tool can be used to generate signed licences for other external assemblies
    Syntax
    'Declaration
     
    
    Public Shared Function ActivateSigned( _
       ByVal licenceKey As String, _
       ByVal activationInfo1 As String, _
       ByVal activationInfo2 As String, _
       ByRef result As String, _
       Optional ByVal expiryDate As Date _
    ) As DicomLicence
    'Usage
     
    
    Dim licenceKey As String
    Dim activationInfo1 As String
    Dim activationInfo2 As String
    Dim result As String
    Dim expiryDate As Date
    Dim value As DicomLicence
     
    value = DicomLicence.ActivateSigned(licenceKey, activationInfo1, activationInfo2, result, expiryDate)

    Parameters

    licenceKey
    The key provided by Medical Connections in the format 'SK-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.
    expiryDate
    Optional expiryDate date for the licence to be generated. Default is controlled by the licence key itself

    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 singed DicomObjects Licence, and is used both explicitly by users and internally when requested. For more information please visit this webpage - https://www.medicalconnections.co.uk/kb/Signed-Licensing/

    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