Share via


HelperResult(Func<TextWriter,Task>) Constructor

Definition

Creates a new instance of HelperResult.

public:
 HelperResult(Func<System::IO::TextWriter ^, System::Threading::Tasks::Task ^> ^ asyncAction);
public HelperResult (Func<System.IO.TextWriter,System.Threading.Tasks.Task> asyncAction);
new Microsoft.AspNetCore.Mvc.Razor.HelperResult : Func<System.IO.TextWriter, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.Mvc.Razor.HelperResult
Public Sub New (asyncAction As Func(Of TextWriter, Task))

Parameters

asyncAction
Func<TextWriter,Task>

The asynchronous delegate to invoke when WriteTo(TextWriter, HtmlEncoder) is called.

Remarks

Calls to WriteTo(TextWriter, HtmlEncoder) result in a blocking invocation of asyncAction.

Applies to