LicenseDispenser - How to get implement design-time license?

Merrion

Junior Contributor
Joined
Sep 29, 2001
Messages
265
Location
Dublin, Ireland
I have a component that I wish to protect with a design-time license. i.e. when the component is loaded in a .Net IDE it requires a license but apps compiled and distributed with it do not.

I am using the built in license providor: LicFileLicenseProvider - how do I tell it to only require a license for design time use?

e.g.
Visual Basic:
<LicenseProvider(GetType(LicFileLicenseProvider))> _
Public Class PrintEngine
    Inherits Component
    
    ' Creates a new, null license.
    Private license As License = Nothing    
    
    Public Sub New()        
    
        ' Adds Validate to the control's constructor.
        license = LicenseManager.Validate(GetType(PrintEngine), Me)

    End Sub
    
    Public Overloads Overrides Sub Dispose()
        If Not (license Is Nothing) Then
            license.Dispose()
            license = Nothing
        End If
    End Sub    
    
End Class
 
Back
Top