DicomObjects.NET.V8
DicomObjects Namespace / DicomLicense Class / ActivateOnLine Method
The string provided by Medical Connections, allowing you to activate DicomObjects
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.



In This Topic
    ActivateOnLine Method
    In This Topic
    Attempt to obtain a DicomObjects license on-line
    Syntax
    'Declaration
     
    Public Shared Function ActivateOnLine( _
       ByVal AuthorisationString As String, _
       ByVal CustomerInfo1 As String, _
       ByVal CustomerInfo2 As String, _
       ByRef Result As String _
    ) As DicomLicense
    'Usage
     
    Dim AuthorisationString As String
    Dim CustomerInfo1 As String
    Dim CustomerInfo2 As String
    Dim Result As String
    Dim value As DicomLicense
     
    value = DicomLicense.ActivateOnLine(AuthorisationString, CustomerInfo1, CustomerInfo2, Result)
    public static DicomLicense ActivateOnLine( 
       string AuthorisationString,
       string CustomerInfo1,
       string CustomerInfo2,
       out string Result
    )
    public:
    static DicomLicense^ ActivateOnLine( 
       String^ AuthorisationString,
       String^ CustomerInfo1,
       String^ CustomerInfo2,
       [Out] String^ Result
    ) 

    Parameters

    AuthorisationString
    The string provided by Medical Connections, allowing you to activate DicomObjects
    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 DicomLicense 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 a DicomObjects 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 paramaeter

    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: .NET CLR 3.5 or higher

    See Also