Method GetLicense
| Improve this Doc View SourceGetLicense()
Gets a license for executing assembly.
Declaration
public static License GetLicense()
Returns
| Type | Description |
|---|---|
| License | A License object, or null for the assembly is not licensed. |
Remarks
The returned License object may not be able to be granted as a valid license. Call LicenseManager.Check method to determine whether a valid license can be granted.
GetLicense(Boolean)
Gets a license for executing assembly, given specified design time or runtime mode.
Declaration
public static License GetLicense(bool designMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | designMode | Specifies the design time or runtime mode. true for design time, otherwise runtime. |
Returns
| Type | Description |
|---|---|
| License | A License object, or null for the assembly is not licensed. |
Remarks
The returned License object may not be able to be granted as a valid license. Call LicenseManager.Check method to determine whether a valid license can be granted.
GetLicense(Type, Boolean)
Gets a license for assembly containing specified type, given specified design time or runtime mode.
Declaration
public static License GetLicense(Type type, bool designMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The type contained by the assembly. |
| System.Boolean | designMode | Specifies the design time or runtime mode. true for design time, otherwise runtime. |
Returns
| Type | Description |
|---|---|
| License | A License object, or null for the assembly is not licensed. |
Remarks
The returned License object may not be able to be granted as a valid license. Call LicenseManager.Check method to determine whether a valid license can be granted.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
GetLicense(Assembly, Boolean)
Gets a license for specified assembly, given specified design time or runtime mode.
Declaration
public static License GetLicense(Assembly assembly, bool designMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Assembly | assembly | The specified assembly. |
| System.Boolean | designMode | Specifies the design time or runtime mode. true for design time, otherwise runtime. |
Returns
| Type | Description |
|---|---|
| License | A License object, or null for the assembly is not licensed. |
Remarks
The returned License object may not be able to be granted as a valid license. Call LicenseManager.Check method to determine whether a valid license can be granted.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|