ValidationAttributeAdapter<TAttribute>.MergeAttribute Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the given key and value into
attributes if attributes does not contain a value for
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
	Parameters
- attributes
 - IDictionary<String,String>
 
The HTML attributes dictionary.
- key
 - String
 
The attribute key.
- value
 - String
 
The attribute value.
Returns
true if an attribute was added, otherwise false.