Show / Hide Table of Contents

Method Check

| Improve this Doc View Source

Check(String)

Determines whether a runtime license can be granted for the specified license item name of executing assembly.

Declaration
public static LicenseError Check(string licenseItemName)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

Returns
Type Description
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

| Improve this Doc View Source

Check(String, Type)

Determines whether a runtime license can be granted for the specified license item name of the assembly containing specified type.

Declaration
public static LicenseError Check(string licenseItemName, Type type)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

System.Type type

The type contained by the assembly.

Returns
Type Description
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

| Improve this Doc View Source

Check(String, Assembly)

Determines whether a runtime license can be granted for the specified license item name of the specified assembly.

Declaration
public static LicenseError Check(string licenseItemName, Assembly assembly)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

System.Reflection.Assembly assembly

The specified assembly.

Returns
Type Description
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

| Improve this Doc View Source

Check(String, Boolean)

Determines whether a license can be granted for the specified license item name of the executing assembly, given specified design time or runtime mode.

Declaration
public static LicenseError Check(string licenseItemName, bool designMode)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

System.Boolean designMode

Specifies the design time or runtime mode. true for design time, otherwise runtime.

Returns
Type Description
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

| Improve this Doc View Source

Check(String, Type, Boolean)

Determines whether a license can be granted for the specified license item name of the assembly containing specified type, given specified design time or runtime mode.

Declaration
public static LicenseError Check(string licenseItemName, Type type, bool designMode)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

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
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

| Improve this Doc View Source

Check(String, Assembly, Boolean)

Determines whether a license can be granted for the specified license item name of the specified assembly, given specified design time or runtime mode.

Declaration
public static LicenseError Check(string licenseItemName, Assembly assembly, bool designMode)
Parameters
Type Name Description
System.String licenseItemName

The specified license item name.

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
LicenseError

null if a valid License can be granted. Otherwise a LicenseError indicates the error.

Remarks

This method does not throw a LicenseException when a valid License cannot be granted. The LicenseManager.Validate method throws exception.

If the assembly is not licensed, all callers in the call stack will be checked. If any caller assembly is signed with the same strong name key, the validation will succeed. It's not neccessary to provide a License for assemblies signed with the same strong name key.

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