RenderTreeBuilder.AddAttribute Método

Definición

Sobrecargas

AddAttribute(Int32, RenderTreeFrame)

Anexa un marco que representa un atributo.

El atributo está asociado al elemento agregado más recientemente.

AddAttribute(Int32, RenderTreeFrame)

Anexa un marco que representa un atributo.

El atributo está asociado al elemento agregado más recientemente.

AddAttribute(Int32, String)

Anexa un marco que representa un atributo con valores bool con el valor "true".

El atributo está asociado al elemento agregado más recientemente.

AddAttribute(Int32, String, EventCallback)

Anexa un marco que representa un EventCallback atributo.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

AddAttribute(Int32, String, Boolean)

Anexa un marco que representa un atributo con valores bool.

El atributo está asociado al elemento agregado más recientemente. Si el valor es false y el elemento actual no es un componente, se omitirá el marco.

AddAttribute(Int32, String, MulticastDelegate)

Anexa un marco que representa un atributo con valores delegados.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

AddAttribute(Int32, String, Object)

Anexa un marco que representa un atributo con valores de cadena. El atributo está asociado al elemento agregado más recientemente. Si el valor es nullo el Boolean valor false y el elemento actual no es un componente, se omitirá el marco.

AddAttribute(Int32, String, String)

Anexa un marco que representa un atributo con valores de cadena.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

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

Anexa un marco que representa un EventCallback atributo.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

AddAttribute(Int32, RenderTreeFrame)

Anexa un marco que representa un atributo.

El atributo está asociado al elemento agregado más recientemente.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

frame
RenderTreeFrame

Que RenderTreeFrame contiene el nombre y el valor del atributo.

Se aplica a

AddAttribute(Int32, RenderTreeFrame)

Anexa un marco que representa un atributo.

El atributo está asociado al elemento agregado más recientemente.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

frame
RenderTreeFrame

Que RenderTreeFrame contiene el nombre y el valor del atributo.

Se aplica a

AddAttribute(Int32, String)

Anexa un marco que representa un atributo con valores bool con el valor "true".

El atributo está asociado al elemento agregado más recientemente.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

Se aplica a

AddAttribute(Int32, String, EventCallback)

Anexa un marco que representa un EventCallback atributo.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
EventCallback

El valor del atributo.

Comentarios

Este método se proporciona con fines de infraestructura y se usa para admitir código generado que usa EventCallbackFactory.

Se aplica a

AddAttribute(Int32, String, Boolean)

Anexa un marco que representa un atributo con valores bool.

El atributo está asociado al elemento agregado más recientemente. Si el valor es false y el elemento actual no es un componente, se omitirá el marco.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
Boolean

El valor del atributo.

Se aplica a

AddAttribute(Int32, String, MulticastDelegate)

Anexa un marco que representa un atributo con valores delegados.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
MulticastDelegate

El valor del atributo.

Se aplica a

AddAttribute(Int32, String, Object)

Anexa un marco que representa un atributo con valores de cadena. El atributo está asociado al elemento agregado más recientemente. Si el valor es nullo el Boolean valor false y el elemento actual no es un componente, se omitirá el marco.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
Object

El valor del atributo.

Se aplica a

AddAttribute(Int32, String, String)

Anexa un marco que representa un atributo con valores de cadena.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

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)

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
String

El valor del atributo.

Se aplica a

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

Anexa un marco que representa un EventCallback atributo.

El atributo está asociado al elemento agregado más recientemente. Si el valor es null y el elemento actual no es un componente, se omitirá el marco.

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

Parámetros de tipo

TArgument

Parámetros

sequence
Int32

Entero que representa la posición de la instrucción en el código fuente.

name
String

El nombre del atributo.

value
EventCallback<TArgument>

El valor del atributo.

Comentarios

Este método se proporciona con fines de infraestructura y se usa para admitir código generado que usa EventCallbackFactory.

Se aplica a