DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLicense Class / RetrieveLicense Event






In This Topic
    RetrieveLicense Event
    In This Topic
    Event fired when DicomObjects needs to retrieve a previously stored license
    Syntax
    'Declaration
     
    
    Public Event RetrieveLicense As RetrieveLicenseHandler
    'Usage
     
    
    Dim instance As DicomLicense
    Dim handler As RetrieveLicenseHandler
     
    AddHandler instance.RetrieveLicense, handler
    public event RetrieveLicenseHandler RetrieveLicense
    public event RetrieveLicense: RetrieveLicenseHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event RetrieveLicenseHandler* RetrieveLicense
    public:
    event RetrieveLicenseHandler^ RetrieveLicense
    Remarks

    Normally, DicomObjects stores licenses internally, using a combination of registry locations and files, but on some machines this is not feasible due to excessive security restrictions on the account under which it is running. In these cases, a developer may choose to intercept the storage of the license via the StoreLicense event, and then to provide it on request via this event.

    Note that DeleteAllLicenses does not affect this mechanism, so it is the developer's responsiblity to clear any stored key if required.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also