Skip to main content

AgileDotNetLicenseProvider Validate2

Gets a license for an instance or type of component. The license found is validated against its Locks

Syntax

Visual Basic

Public Overloads Shared Sub Validate( _
   ByVal type As Type, _
   ByVal instance As Object _
)

C#

public static AgileDotNetLicense Validate(
   Type type,
   object instance
);

Parameters

Return Value

A valid AgileDotNetLicense.

Remarks

The method looks for all license files ending with 'lic' extension located at the application's folder. It then validates each license with its Locks, the first valid license is then returned to the caller. A LicenseNotFoundException is thrown when the component cannot be granted a license. To add additional license search folders use AddSearchDirectory.

Exceptions

MemberDescription
LicenseNotFoundExceptionThrown when the system cannot find a valid license.

See Also

AgileDotNetLicenseProvider Class | AgileDotNet.Licensing Namespace | AgileDotNetLicenseProvider.Validate Overload List