Share via


Accepted<TValue> Sınıf

Tanım

IResult Yürütmede yanıta Kabul Edildi (202) durum kodu ve Konum üst bilgisi ile bir nesne yazar. Kayıtlı bir yolu hedefler.

public sealed class Accepted<TValue> : Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult, Microsoft.AspNetCore.Http.IValueHttpResult<TValue>, Microsoft.AspNetCore.Http.Metadata.IEndpointMetadataProvider
type Accepted<'Value> = class
    interface IResult
    interface IEndpointMetadataProvider
    interface IStatusCodeHttpResult
    interface IValueHttpResult
    interface IValueHttpResult<'Value>
Public NotInheritable Class Accepted(Of TValue)
Implements IEndpointMetadataProvider, IResult, IStatusCodeHttpResult, IValueHttpResult, IValueHttpResult(Of TValue)

Tür Parametreleri

TValue
Devralma
Accepted<TValue>
Uygulamalar

Özellikler

Location

İstenen içeriğin durumunun izlenebileceği konumu alır.

StatusCode

HTTP durum kodunu alır: Status202Accepted

Value

Nesne sonucunu alır.

Yöntemler

ExecuteAsync(HttpContext)

Sonucu yansıtan bir HTTP yanıtı yazın.

Belirtik Arabirim Kullanımları

IEndpointMetadataProvider.PopulateMetadata(MethodInfo, EndpointBuilder)

İlgili Endpoint ve MethodInfoiçin meta verileri doldurur.

IStatusCodeHttpResult.StatusCode

IResult Yürütmede yanıta Kabul Edildi (202) durum kodu ve Konum üst bilgisi ile bir nesne yazar. Kayıtlı bir yolu hedefler.

IValueHttpResult.Value

IResult Yürütmede yanıta Kabul Edildi (202) durum kodu ve Konum üst bilgisi ile bir nesne yazar. Kayıtlı bir yolu hedefler.

Şunlara uygulanır