RenderTreeBuilder.AddContent Method

Definition

Overloads

AddContent(Int32, Object)

Appends a frame representing text content.

AddContent(Int32, Nullable<MarkupString>)

Appends a frame representing markup content.

AddContent(Int32, String)

Appends a frame representing text content.

AddContent(Int32, MarkupString)

Appends a frame representing markup content.

AddContent(Int32, RenderFragment)

Appends frames representing an arbitrary fragment of content.

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

Appends frames representing an arbitrary fragment of content.

AddContent(Int32, Object)

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends a frame representing text content.

C#
public void AddContent (int sequence, object textContent);
C#
public void AddContent (int sequence, object? textContent);

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

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddContent(Int32, Nullable<MarkupString>)

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends a frame representing markup content.

C#
public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent);

Parameters

sequence
Int32

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

markupContent
Nullable<MarkupString>

Content for the new text frame, or null.

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 7.0, 8.0, 9.0

AddContent(Int32, String)

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends a frame representing text content.

C#
public void AddContent (int sequence, string textContent);
C#
public void AddContent (int sequence, string? textContent);

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

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddContent(Int32, MarkupString)

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends a frame representing markup content.

C#
public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString markupContent);

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

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

AddContent(Int32, RenderFragment)

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends frames representing an arbitrary fragment of content.

C#
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment fragment);
C#
public void AddContent (int sequence, Microsoft.AspNetCore.Components.RenderFragment? fragment);

Parameters

sequence
Int32

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

fragment
RenderFragment

Content to append.

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

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

Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs
Source:
RenderTreeBuilder.cs

Appends frames representing an arbitrary fragment of content.

C#
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue> fragment, TValue value);
C#
public void AddContent<TValue> (int sequence, Microsoft.AspNetCore.Components.RenderFragment<TValue>? fragment, TValue value);

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

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0