Aracılığıyla paylaş


Created<TValue> Sınıf

Tanım

IResult Yürütmede olan, durum kodu Oluşturuldu (201) ve Konum üst bilgisi ile yanıta bir nesne yazar.

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

Tür Parametreleri

TValue

JSON'un yanıt gövdesine seri hale getirileceği nesnenin türü.

Devralma
Created<TValue>
Uygulamalar

Özellikler

Location

IResult Yürütmede olan, durum kodu Oluşturuldu (201) ve Konum üst bilgisi ile yanıta bir nesne yazar.

StatusCode

HTTP durum kodunu alır: Status201Created

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 olan, durum kodu Oluşturuldu (201) ve Konum üst bilgisi ile yanıta bir nesne yazar.

IValueHttpResult.Value

IResult Yürütmede olan, durum kodu Oluşturuldu (201) ve Konum üst bilgisi ile yanıta bir nesne yazar.

Şunlara uygulanır