Language

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 です。

注意 (継承者)

このクラスから継承する場合は、このメソッドをオーバーライドして独自の検証ロジックを提供できます。

適用対象

こちらもご覧ください