共用方式為


IProblemDetailsWriter.CanWrite(ProblemDetailsContext) 方法

定義

判斷這個實例是否可以將 寫入 ProblemDetails 目前的內容。

public bool CanWrite (Microsoft.AspNetCore.Http.ProblemDetailsContext context);
abstract member CanWrite : Microsoft.AspNetCore.Http.ProblemDetailsContext -> bool
Public Function CanWrite (context As ProblemDetailsContext) As Boolean

參數

context
ProblemDetailsContext

ProblemDetailsContext與目前要求/回應相關聯的 。

傳回

旗標,指出寫入器是否可以寫入目前的 ProblemDetailsContext

適用於