Compartir a través de


ValidationAttributeAdapter<TAttribute>.MergeAttribute Método

Definición

Agrega el especificado key y value en attributes si attributes no contiene un valor para 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

Parámetros

attributes
IDictionary<String,String>

Diccionario de atributos HTML.

key
String

Clave de atributo.

value
String

Valor del atributo.

Devoluciones

true es si se ha agregado un atributo; de lo contrario false, es .

Se aplica a