Show / Hide Table of Contents

Method GetLicense

| Improve this Doc View Source

GetLicense()

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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

type is null.

| Improve this Doc View Source

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

assembly is null.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest