NoContent 類別

定義

表示 IResult 執行時會產生 HTTP 回應,其中包含 [無內容] (204) 狀態碼。

public class NoContent : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type NoContent = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
Public Class NoContent
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult
繼承
NoContent
實作

屬性

StatusCode

取得 HTTP 狀態碼: Status204NoContent

方法

ExecuteAsync(HttpContext)

撰寫反映結果的 HTTP 回應。

明確介面實作

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

填入相關 EndpointMethodInfo 的中繼資料。

IStatusCodeHttpResult.StatusCode

表示 IResult 執行時會產生 HTTP 回應,其中包含 [無內容] (204) 狀態碼。

適用於