TagBuilder.MergeAttributes 方法

定义

重载

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)

合并属性字典。

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean)

合并属性字典。

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)

Source:
TagBuilder.cs
Source:
TagBuilder.cs

合并属性字典。

public:
generic <typename TKey, typename TValue>
 void MergeAttributes(System::Collections::Generic::IDictionary<TKey, TValue> ^ attributes);
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue> attributes);
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue?> attributes);
member this.MergeAttributes : System.Collections.Generic.IDictionary<'Key, 'Value> -> unit
Public Sub MergeAttributes(Of TKey, TValue) (attributes As IDictionary(Of TKey, TValue))

类型参数

TKey

键类型。

TValue

值类型。

参数

attributes
IDictionary<TKey,TValue>

属性。

适用于

MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean)

Source:
TagBuilder.cs
Source:
TagBuilder.cs

合并属性字典。

public:
generic <typename TKey, typename TValue>
 void MergeAttributes(System::Collections::Generic::IDictionary<TKey, TValue> ^ attributes, bool replaceExisting);
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue> attributes, bool replaceExisting);
public void MergeAttributes<TKey,TValue> (System.Collections.Generic.IDictionary<TKey,TValue?> attributes, bool replaceExisting);
member this.MergeAttributes : System.Collections.Generic.IDictionary<'Key, 'Value> * bool -> unit
Public Sub MergeAttributes(Of TKey, TValue) (attributes As IDictionary(Of TKey, TValue), replaceExisting As Boolean)

类型参数

TKey

键类型。

TValue

值类型。

参数

attributes
IDictionary<TKey,TValue>

属性。

replaceExisting
Boolean

是否替换现有属性。

适用于