TagHelperOutput.GetChildContentAsync Method

Definition

Overloads

GetChildContentAsync()

Executes children asynchronously and returns their rendered content.

GetChildContentAsync(Boolean)

Executes children asynchronously and returns their rendered content.

GetChildContentAsync(HtmlEncoder)

Executes children asynchronously with the given encoder in scope and returns their rendered content.

GetChildContentAsync(Boolean, HtmlEncoder)

Executes children asynchronously with the given encoder in scope and returns their rendered content.

GetChildContentAsync()

Source:
TagHelperOutput.cs
Source:
TagHelperOutput.cs

Executes children asynchronously and returns their rendered content.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^ GetChildContentAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> GetChildContentAsync ();
member this.GetChildContentAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>
Public Function GetChildContentAsync () As Task(Of TagHelperContent)

Returns

A Task that on completion returns content rendered by children.

Remarks

This method is memoized. Multiple calls will not cause children to re-execute with the page's original HtmlEncoder.

Applies to

GetChildContentAsync(Boolean)

Source:
TagHelperOutput.cs
Source:
TagHelperOutput.cs

Executes children asynchronously and returns their rendered content.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^ GetChildContentAsync(bool useCachedResult);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> GetChildContentAsync (bool useCachedResult);
member this.GetChildContentAsync : bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>
Public Function GetChildContentAsync (useCachedResult As Boolean) As Task(Of TagHelperContent)

Parameters

useCachedResult
Boolean

If true, multiple calls will not cause children to re-execute with the page's original HtmlEncoder; returns cached content.

Returns

A Task that on completion returns content rendered by children.

Applies to

GetChildContentAsync(HtmlEncoder)

Source:
TagHelperOutput.cs
Source:
TagHelperOutput.cs

Executes children asynchronously with the given encoder in scope and returns their rendered content.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^ GetChildContentAsync(System::Text::Encodings::Web::HtmlEncoder ^ encoder);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> GetChildContentAsync (System.Text.Encodings.Web.HtmlEncoder encoder);
member this.GetChildContentAsync : System.Text.Encodings.Web.HtmlEncoder -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>
Public Function GetChildContentAsync (encoder As HtmlEncoder) As Task(Of TagHelperContent)

Parameters

encoder
HtmlEncoder

The HtmlEncoder to use when the page handles non-IHtmlContent C# expressions. If null, executes children with the page's current HtmlEncoder.

Returns

A Task that on completion returns content rendered by children.

Remarks

This method is memoized. Multiple calls with the same HtmlEncoder instance will not cause children to re-execute with that encoder in scope.

Applies to

GetChildContentAsync(Boolean, HtmlEncoder)

Source:
TagHelperOutput.cs
Source:
TagHelperOutput.cs

Executes children asynchronously with the given encoder in scope and returns their rendered content.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperContent ^> ^ GetChildContentAsync(bool useCachedResult, System::Text::Encodings::Web::HtmlEncoder ^ encoder);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent> GetChildContentAsync (bool useCachedResult, System.Text.Encodings.Web.HtmlEncoder encoder);
member this.GetChildContentAsync : bool * System.Text.Encodings.Web.HtmlEncoder -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContent>
Public Function GetChildContentAsync (useCachedResult As Boolean, encoder As HtmlEncoder) As Task(Of TagHelperContent)

Parameters

useCachedResult
Boolean

If true, multiple calls with the same HtmlEncoder will not cause children to re-execute; returns cached content.

encoder
HtmlEncoder

The HtmlEncoder to use when the page handles non-IHtmlContent C# expressions. If null, executes children with the page's current HtmlEncoder.

Returns

A Task that on completion returns content rendered by children.

Applies to