Method Validate
| Improve this Doc View SourceValidate(String)
Determines whether a runtime license can be granted for the specified license item name of executing assembly.
Declaration
public static void Validate(string licenseItemName)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseItemName | The specified license item name. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.
Validate(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 void Validate(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. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.
Validate(String, Assembly)
Determines whether a runtime license can be granted for the specified license item name of the specified assembly.
Declaration
public static void Validate(string licenseItemName, Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.String | licenseItemName | The specified license item name. |
System.Reflection.Assembly | assembly | The specified assembly. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.
Validate(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 void Validate(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. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.
Validate(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 void Validate(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. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.
Validate(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 void Validate(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. |
Remarks
This method throws a LicenseException when a valid License cannot be granted. The LicenseManager.Check method does not throw an 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.