LicFileLicenseProvider.IsKeyValid(String, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si la clé récupérée par la GetLicense(LicenseContext, Type, Object, Boolean) méthode est valide pour le type spécifié.
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
Paramètres
- key
- String
À LicenseKey vérifier.
Retours
true si la clé est valide LicenseKey pour le type spécifié ; sinon, false.
Remarques
Cette méthode vérifie la clé par rapport à l’expression : « myClassName is a licensed component. , où myClassName est le FullName composant que vous souhaitez créer.
Notes pour les héritiers
Lorsque vous héritez de cette classe, vous pouvez remplacer cette méthode pour fournir votre propre logique de validation.