TagBuilder.MergeAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>) |
將屬性新增至標記。 |
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>, Boolean) |
新增屬性,或選擇性地取代標記中的現有屬性。 |
MergeAttributes<TKey,TValue>(IDictionary<TKey,TValue>)
將屬性新增至標記。
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)
新增屬性,或選擇性地取代標記中的現有屬性。
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
針對 中的每個屬性, attributes
如果屬性已經存在具有相同索引鍵,則為 true 取代屬性,否則為 false,讓原始屬性保持不變。