StatusCodePagesOptions.HandleAsync 属性

定义

为给定 StatusCodeContext生成响应正文的处理程序。 默认情况下,这会生成包含状态代码的纯文本响应。

public:
 property Func<Microsoft::AspNetCore::Diagnostics::StatusCodeContext ^, System::Threading::Tasks::Task ^> ^ HandleAsync { Func<Microsoft::AspNetCore::Diagnostics::StatusCodeContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Diagnostics::StatusCodeContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Diagnostics.StatusCodeContext,System.Threading.Tasks.Task> HandleAsync { get; set; }
member this.HandleAsync : Func<Microsoft.AspNetCore.Diagnostics.StatusCodeContext, System.Threading.Tasks.Task> with get, set
Public Property HandleAsync As Func(Of StatusCodeContext, Task)

属性值

适用于