System.ComponentModel.LicenseProvider.GetLicense Method

When overridden in a derived class, gets a license for an instance or type of component, when given a context and whether the denial of a license throws an exception.

Syntax

public abstract License GetLicense (LicenseContext context, Type type, object instance, bool allowExceptions)

Parameters

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

Returns

A valid System.ComponentModel.License.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0