共用方式為


TagBuilder.MergeAttributes 方法

定義

多載

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

合併屬性字典。

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

合併屬性字典。

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

來源:
TagBuilder.cs
來源:
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)

來源:
TagBuilder.cs
來源:
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

是否要取代現有的屬性。

適用於