HelperResult(Func<TextWriter,Task>) Constructor
Definition
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.
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
.