DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomLicense Class / GetLicense Method / GetLicense() Method
Example

In This Topic
    GetLicense() Method
    In This Topic
    Allow DicomObjects to select a license
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetLicense() As DicomLicense
    public static DicomLicense GetLicense()

    Return Value

    A DicomLicense object
    Remarks
    When this method is used (either explicitly, or implicitly via use of licensed functionality or getting the CurrentLicense property before choosing a license), the DicomObjects will select the first DicomObjects.Enums.LicenseTypes.Full license available in the InstalledLicenses collection, or failing that a DicomObjects.Enums.LicenseTypes.Developer license.
    Example
    DicomLicense curLic = DicomLicense.GetLicense();
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also