RenderTreeBuilder.AddAttribute 方法

定義

多載

AddAttribute(Int32, RenderTreeFrame)

附加表示屬性的框架。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, RenderTreeFrame)

附加表示屬性的框架。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, String)

附加框架,代表值為 'true' 的 bool 值屬性。

屬性與最近加入的專案相關聯。

AddAttribute(Int32, String, EventCallback)

附加表示屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

AddAttribute(Int32, String, Boolean)

附加表示布林值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 false ,而且目前的元素不是元件,則會省略框架。

AddAttribute(Int32, String, MulticastDelegate)

附加表示委派值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

AddAttribute(Int32, String, Object)

附加表示字串值屬性的框架。 屬性與最近加入的專案相關聯。 如果值為 ,或 Booleannullfalse 和目前元素不是元件,則會省略框架。

AddAttribute(Int32, String, String)

附加表示字串值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

AddAttribute<TArgument>(Int32, String, EventCallback<TArgument>)

附加表示屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

AddAttribute(Int32, RenderTreeFrame)

附加表示屬性的框架。

屬性與最近加入的專案相關聯。

public:
 void AddAttribute(int sequence, Microsoft::AspNetCore::Components::RenderTree::RenderTreeFrame frame);
public void AddAttribute (int sequence, Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame frame);
member this.AddAttribute : int * Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame -> unit
Public Sub AddAttribute (sequence As Integer, frame As RenderTreeFrame)

參數

sequence
Int32

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

frame
RenderTreeFrame

RenderTreeFrame 保存屬性的名稱和值。

適用於

AddAttribute(Int32, RenderTreeFrame)

附加表示屬性的框架。

屬性與最近加入的專案相關聯。

public:
 void AddAttribute(int sequence, Microsoft::AspNetCore::Components::RenderTree::RenderTreeFrame % frame);
public void AddAttribute (int sequence, in Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame frame);
member this.AddAttribute : int * RenderTreeFrame -> unit
Public Sub AddAttribute (sequence As Integer, ByRef frame As RenderTreeFrame)

參數

sequence
Int32

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

frame
RenderTreeFrame

RenderTreeFrame 保存屬性的名稱和值。

適用於

AddAttribute(Int32, String)

附加框架,代表值為 'true' 的 bool 值屬性。

屬性與最近加入的專案相關聯。

public:
 void AddAttribute(int sequence, System::String ^ name);
public void AddAttribute (int sequence, string name);
member this.AddAttribute : int * string -> unit
Public Sub AddAttribute (sequence As Integer, name As String)

參數

sequence
Int32

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

name
String

屬性的名稱。

適用於

AddAttribute(Int32, String, EventCallback)

附加表示屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

public:
 void AddAttribute(int sequence, System::String ^ name, Microsoft::AspNetCore::Components::EventCallback value);
public void AddAttribute (int sequence, string name, Microsoft.AspNetCore.Components.EventCallback value);
member this.AddAttribute : int * string * Microsoft.AspNetCore.Components.EventCallback -> unit
Public Sub AddAttribute (sequence As Integer, name As String, value As EventCallback)

參數

sequence
Int32

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

name
String

屬性的名稱。

value
EventCallback

屬性的值。

備註

這個方法是為了基礎結構用途而提供,可用來支援使用 EventCallbackFactory 產生的程式碼。

適用於

AddAttribute(Int32, String, Boolean)

附加表示布林值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 false ,而且目前的元素不是元件,則會省略框架。

public:
 void AddAttribute(int sequence, System::String ^ name, bool value);
public void AddAttribute (int sequence, string name, bool value);
member this.AddAttribute : int * string * bool -> unit
Public Sub AddAttribute (sequence As Integer, name As String, value As Boolean)

參數

sequence
Int32

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

name
String

屬性的名稱。

value
Boolean

屬性的值。

適用於

AddAttribute(Int32, String, MulticastDelegate)

附加表示委派值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

public:
 void AddAttribute(int sequence, System::String ^ name, MulticastDelegate ^ value);
public void AddAttribute (int sequence, string name, MulticastDelegate value);
public void AddAttribute (int sequence, string name, MulticastDelegate? value);
member this.AddAttribute : int * string * MulticastDelegate -> unit
Public Sub AddAttribute (sequence As Integer, name As String, value As MulticastDelegate)

參數

sequence
Int32

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

name
String

屬性的名稱。

value
MulticastDelegate

屬性的值。

適用於

AddAttribute(Int32, String, Object)

附加表示字串值屬性的框架。 屬性與最近加入的專案相關聯。 如果值為 ,或 Booleannullfalse 和目前元素不是元件,則會省略框架。

public:
 void AddAttribute(int sequence, System::String ^ name, System::Object ^ value);
public void AddAttribute (int sequence, string name, object value);
public void AddAttribute (int sequence, string name, object? value);
member this.AddAttribute : int * string * obj -> unit
Public Sub AddAttribute (sequence As Integer, name As String, value As Object)

參數

sequence
Int32

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

name
String

屬性的名稱。

value
Object

屬性的值。

適用於

AddAttribute(Int32, String, String)

附加表示字串值屬性的框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

public:
 void AddAttribute(int sequence, System::String ^ name, System::String ^ value);
public void AddAttribute (int sequence, string name, string value);
public void AddAttribute (int sequence, string name, string? value);
member this.AddAttribute : int * string * string -> unit
Public Sub AddAttribute (sequence As Integer, name As String, value As String)

參數

sequence
Int32

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

name
String

屬性的名稱。

value
String

屬性的值。

適用於

AddAttribute<TArgument>(Int32, String, EventCallback<TArgument>)

附加表示屬性的 EventCallback 框架。

屬性與最近加入的專案相關聯。 如果值為 null ,而且目前的元素不是元件,則會省略框架。

public:
generic <typename TArgument>
 void AddAttribute(int sequence, System::String ^ name, Microsoft::AspNetCore::Components::EventCallback<TArgument> value);
public void AddAttribute<TArgument> (int sequence, string name, Microsoft.AspNetCore.Components.EventCallback<TArgument> value);
member this.AddAttribute : int * string * Microsoft.AspNetCore.Components.EventCallback<'Argument> -> unit
Public Sub AddAttribute(Of TArgument) (sequence As Integer, name As String, value As EventCallback(Of TArgument))

類型參數

TArgument

參數

sequence
Int32

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

name
String

屬性的名稱。

value
EventCallback<TArgument>

屬性的值。

備註

這個方法是為了基礎結構用途而提供,可用來支援使用 EventCallbackFactory 產生的程式碼。

適用於