Method MergeAttribute
| Improve this Doc View SourceMergeAttribute(IDictionary<String, String>, String, String)
Adds the given key
and value
into
attributes
if attributes
does not contain a value for
key
.
Declaration
protected static bool MergeAttribute(IDictionary<string, string> attributes, string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | attributes | The HTML attributes dictionary. |
System.String | key | The attribute key. |
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
System.Boolean | true if an attribute was added, otherwise false. |