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입니다.

반환

해당 키가 지정된 형식에 대해 유효한 LicenseKey이면 true이고, 그렇지 않으면 false입니다.

설명

이 메서드는 " myClassName is a licensed component. , 여기서 myClassName 은 만들려는 구성 요소의 입니다 FullName .

상속자 참고

이 클래스에서 상속하는 경우 이 메서드를 재정의하여 고유한 유효성 검사 논리를 제공할 수 있습니다.

적용 대상

추가 정보