共用方式為


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)

屬性值

適用於