Gets a license for an instance or type of component, when given a context and whether the denial of a license throws an exception.

Namespace:  Greatis.FormDesigner
Assembly:  Greatis.FormDesigner.Interop (in Greatis.FormDesigner.Interop.dll)

Syntax

Visual Basic (Declaration)
Public Overrides Function GetLicense ( _
	context As LicenseContext, _
	type As Type, _
	instance As Object, _
	allowExceptions As Boolean _
) As License
C#
public override License GetLicense(
	LicenseContext context,
	Type type,
	Object instance,
	bool allowExceptions
)
Visual C++
public:
virtual License^ GetLicense(
	LicenseContext^ context, 
	Type^ type, 
	Object^ instance, 
	bool allowExceptions
) override
JavaScript
function getLicense(context, type, instance, allowExceptions);

Parameters

context
Type: System.ComponentModel..::.LicenseContext
A LicenseContext that specifies where you can use the licensed object.
type
Type: System..::.Type
A Type that represents the component requesting the license.
instance
Type: System..::.Object
An object that is requesting the license.
allowExceptions
Type: System..::.Boolean
true if a LicenseException should be thrown when the component cannot be granted a license; otherwise, false.

Return Value

A valid License.

See Also