通过


LicFileLicenseProvider.IsKeyValid(String, Type) 方法

定义

确定方法检索的键 GetLicense(LicenseContext, Type, Object, Boolean) 是否对指定类型有效。

protected:
 virtual bool IsKeyValid(System::String ^ key, Type ^ type);
protected virtual bool IsKeyValid(string? key, Type type);
protected virtual bool IsKeyValid(string key, Type type);
abstract member IsKeyValid : string * Type -> bool
override this.IsKeyValid : string * Type -> bool
Protected Overridable Function IsKeyValid (key As String, type As Type) As Boolean

参数

key
String

LicenseKey 检查的。

type
Type

一个 Type 表示请求 . 的 License组件。

返回

true 如果键对指定类型有效 LicenseKey ,则为 ;否则为 false

注解

此方法根据短语检查密钥:“ myClassName is a licensed component. ,其中 myClassName 是要 FullName 创建的组件的位置。

继承者说明

从此类继承时,可以重写此方法以提供自己的验证逻辑。

适用于

另请参阅