HtmlTextWriter.IsValidFormAttribute(String) 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.
Vérifie un attribut pour s’assurer qu’il peut être rendu dans la balise d’ouverture d’un <form> élément de balisage.
public:
virtual bool IsValidFormAttribute(System::String ^ attribute);
public virtual bool IsValidFormAttribute(string attribute);
abstract member IsValidFormAttribute : string -> bool
override this.IsValidFormAttribute : string -> bool
Public Overridable Function IsValidFormAttribute (attribute As String) As Boolean
Paramètres
- attribute
- String
Chaîne qui contient le nom de l’attribut à vérifier.
Retours
A toujours la valeur true.
Remarques
L’implémentation HtmlTextWriter de classe de la IsValidFormAttribute méthode retourne true pour tous les attributs. Remplacez la IsValidFormAttribute limite pour limiter les attributs qui peuvent être rendus dans la balise d’ouverture d’un <form> élément.
Notes pour les héritiers
Remplacez la IsValidFormAttribute(String) méthode pour retourner true uniquement les attributs qui peuvent être inclus dans l’élément <form> du balisage pour lequel la classe dérivée de la HtmlTextWriter classe est prévue.