ValidationAttributeAdapter<TAttribute>.MergeAttribute Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přidá danou key hodnotu a value do attributes pole , pokud attributes neobsahuje hodnotu pro key.
protected:
static bool MergeAttribute(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ attributes, System::String ^ key, System::String ^ value);
protected static bool MergeAttribute(System.Collections.Generic.IDictionary<string,string> attributes, string key, string value);
static member MergeAttribute : System.Collections.Generic.IDictionary<string, string> * string * string -> bool
Protected Shared Function MergeAttribute (attributes As IDictionary(Of String, String), key As String, value As String) As Boolean
Parametry
- attributes
- IDictionary<String,String>
Slovník atributů HTML.
- key
- String
Klíč atributu.
- value
- String
Hodnota atributu.
Návraty
true pokud byl přidán atribut, jinak false.