RenderTreeBuilder.AddContent Method

Definition

Overloads

AddContent(Int32, MarkupString)

Appends a frame representing markup content.

AddContent(Int32, RenderFragment)

Appends frames representing an arbitrary fragment of content.

AddContent(Int32, Object)

Appends a frame representing text content.

AddContent(Int32, String)

Appends a frame representing text content.

AddContent<TValue>(Int32, RenderFragment<TValue>, TValue)

Appends frames representing an arbitrary fragment of content.

AddContent(Int32, MarkupString)

Appends a frame representing markup content.

public:
 void AddContent(int sequence, Microsoft::AspNetCore::Components::MarkupString markupContent);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString markupContent);
member this.AddContent : int * Microsoft.AspNetCore.Components.MarkupString -> unit
Public Sub AddContent (sequence As Integer, markupContent As MarkupString)

Parameters

sequence
Int32

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

markupContent
MarkupString

Content for the new markup frame.

Applies to

AddContent(Int32, RenderFragment)

Appends frames representing an arbitrary fragment of content.

public:
 void AddContent(int sequence, Microsoft::AspNetCore::Components::RenderFragment ^ fragment);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment);
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment? fragment);
member this.AddContent : int * Microsoft.AspNetCore.Components.RenderFragment -> unit
Public Sub AddContent (sequence As Integer, fragment As RenderFragment)

Parameters

sequence
Int32

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

fragment
RenderFragment

Content to append.

Applies to

AddContent(Int32, Object)

Appends a frame representing text content.

public:
 void AddContent(int sequence, System::Object ^ textContent);
public void AddContent (int sequence, object textContent);
public void AddContent (int sequence, object? textContent);
member this.AddContent : int * obj -> unit
Public Sub AddContent (sequence As Integer, textContent As Object)

Parameters

sequence
Int32

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

textContent
Object

Content for the new text frame.

Applies to

AddContent(Int32, String)

Appends a frame representing text content.

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

Parameters

sequence
Int32

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

textContent
String

Content for the new text frame.

Applies to

AddContent<TValue>(Int32, RenderFragment<TValue>, TValue)

Appends frames representing an arbitrary fragment of content.

public:
generic <typename TValue>
 void AddContent(int sequence, Microsoft::AspNetCore::Components::RenderFragment<TValue> ^ fragment, TValue value);
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue> fragment, TValue value);
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue>? fragment, TValue value);
member this.AddContent : int * Microsoft.AspNetCore.Components.RenderFragment<'Value> * 'Value -> unit
Public Sub AddContent(Of TValue) (sequence As Integer, fragment As RenderFragment(Of TValue), value As TValue)

Type Parameters

TValue

Parameters

sequence
Int32

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

fragment
RenderFragment<TValue>

Content to append.

value
TValue

The value used by fragment.

Applies to