RenderTreeBuilder.AddContent Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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.
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
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 |
- Source:
- RenderTreeBuilder.cs
- Source:
- RenderTreeBuilder.cs
- Source:
- RenderTreeBuilder.cs
Appends a frame representing markup content.
public void AddContent (int sequence, Microsoft.AspNetCore.Components.MarkupString? markupContent);
member this.AddContent : int * Nullable<Microsoft.AspNetCore.Components.MarkupString> -> unit
Public Sub AddContent (sequence As Integer, markupContent As Nullable(Of MarkupString))
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 |
- 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.
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
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 |
- 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.
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
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 |
- 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.
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
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 |
- 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.
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
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 |