TagBuilder.MergeAttribute Méthode

Définition

Surcharges

MergeAttribute(String, String)

Ajoute un nouvel attribut à la balise.

MergeAttribute(String, String, Boolean)

Ajoute un nouvel attribut ou remplace éventuellement un attribut existant dans la balise d'ouverture.

MergeAttribute(String, String)

Ajoute un nouvel attribut à la balise.

public void MergeAttribute (string key, string value);
member this.MergeAttribute : string * string -> unit
Public Sub MergeAttribute (key As String, value As String)

Paramètres

key
String

Clé de l'attribut.

value
String

Valeur de l'attribut.

S’applique à

MergeAttribute(String, String, Boolean)

Ajoute un nouvel attribut ou remplace éventuellement un attribut existant dans la balise d'ouverture.

public void MergeAttribute (string key, string value, bool replaceExisting);
member this.MergeAttribute : string * string * bool -> unit
Public Sub MergeAttribute (key As String, value As String, replaceExisting As Boolean)

Paramètres

key
String

Clé de l'attribut.

value
String

Valeur de l'attribut.

replaceExisting
Boolean

true pour remplacer un attribut existant s’il existe un attribut qui a la valeur spécifiée key , ou false pour laisser l’attribut d’origine inchangé.

S’applique à