RenderTreeBuilder.AddMultipleAttributes 方法

定義

加入代表具有相同序號之多個屬性的畫面。

C#
public void AddMultipleAttributes (int sequence, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> attributes);
C#
public void AddMultipleAttributes (int sequence, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>? attributes);

參數

sequence
Int32

整數,表示指令在原始程式碼中的位置。

attributes
IEnumerable<KeyValuePair<String,Object>>

代表屬性的索引鍵/值組集合。

適用於

產品 版本
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0