RenderTreeBuilder.AddAttribute Method

Definition

Overloads

AddAttribute(Int32, RenderTreeFrame)

Appends a frame representing an attribute.

The attribute is associated with the most recently added element.

AddAttribute(Int32, RenderTreeFrame)

Appends a frame representing an attribute.

The attribute is associated with the most recently added element.

AddAttribute(Int32, String)

Appends a frame representing a bool-valued attribute with value 'true'.

The attribute is associated with the most recently added element.

AddAttribute(Int32, String, EventCallback)

Appends a frame representing an EventCallback attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

AddAttribute(Int32, String, Boolean)

Appends a frame representing a bool-valued attribute.

The attribute is associated with the most recently added element. If the value is false and the current element is not a component, the frame will be omitted.

AddAttribute(Int32, String, MulticastDelegate)

Appends a frame representing a delegate-valued attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

AddAttribute(Int32, String, Object)

Appends a frame representing a string-valued attribute. The attribute is associated with the most recently added element. If the value is null, or the Boolean value false and the current element is not a component, the frame will be omitted.

AddAttribute(Int32, String, String)

Appends a frame representing a string-valued attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

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

Appends a frame representing an EventCallback attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

AddAttribute(Int32, RenderTreeFrame)

Appends a frame representing an attribute.

The attribute is associated with the most recently added element.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

frame
RenderTreeFrame

A RenderTreeFrame holding the name and value of the attribute.

Applies to

AddAttribute(Int32, RenderTreeFrame)

Appends a frame representing an attribute.

The attribute is associated with the most recently added element.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

frame
RenderTreeFrame

A RenderTreeFrame holding the name and value of the attribute.

Applies to

AddAttribute(Int32, String)

Appends a frame representing a bool-valued attribute with value 'true'.

The attribute is associated with the most recently added element.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

Applies to

AddAttribute(Int32, String, EventCallback)

Appends a frame representing an EventCallback attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
EventCallback

The value of the attribute.

Remarks

This method is provided for infrastructure purposes, and is used to support generated code that uses EventCallbackFactory.

Applies to

AddAttribute(Int32, String, Boolean)

Appends a frame representing a bool-valued attribute.

The attribute is associated with the most recently added element. If the value is false and the current element is not a component, the frame will be omitted.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
Boolean

The value of the attribute.

Applies to

AddAttribute(Int32, String, MulticastDelegate)

Appends a frame representing a delegate-valued attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
MulticastDelegate

The value of the attribute.

Applies to

AddAttribute(Int32, String, Object)

Appends a frame representing a string-valued attribute. The attribute is associated with the most recently added element. If the value is null, or the Boolean value false and the current element is not a component, the frame will be omitted.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
Object

The value of the attribute.

Applies to

AddAttribute(Int32, String, String)

Appends a frame representing a string-valued attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

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)

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
String

The value of the attribute.

Applies to

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

Appends a frame representing an EventCallback attribute.

The attribute is associated with the most recently added element. If the value is null and the current element is not a component, the frame will be omitted.

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))

Type Parameters

TArgument

Parameters

sequence
Int32

An integer that represents the position of the instruction in the source code.

name
String

The name of the attribute.

value
EventCallback<TArgument>

The value of the attribute.

Remarks

This method is provided for infrastructure purposes, and is used to support generated code that uses EventCallbackFactory.

Applies to