Dil

ApiControllerAttribute Sınıf

Tanım

BIR türün ve türetilen tüm türlerin HTTP API yanıtlarına hizmet vermek için kullanıldığını gösterir.

Bu öznitelikle dekore edilmiş denetleyiciler, API'ler oluşturmaya yönelik geliştirici deneyimini iyileştirmeyi hedefleyen özellikler ve davranışlarla yapılandırılır.

Bir derlemede dekore edildiğinde, derlemedeki tüm denetleyiciler API davranışına sahip denetleyiciler olarak değerlendirilir. Daha fazla bilgi için bkz. ApiController özniteliği.

public ref class ApiControllerAttribute : Microsoft::AspNetCore::Mvc::ControllerAttribute, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata, Microsoft::AspNetCore::Mvc::Internal::IApiBehaviorMetadata
public ref class ApiControllerAttribute : Microsoft::AspNetCore::Mvc::ControllerAttribute, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata
public ref class ApiControllerAttribute : Microsoft::AspNetCore::Mvc::ControllerAttribute, Microsoft::AspNetCore::Mvc::Filters::IFilterMetadata, Microsoft::AspNetCore::Mvc::Infrastructure::IApiBehaviorMetadata
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Http.Metadata.IDisableCookieRedirectMetadata, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Infrastructure.IApiBehaviorMetadata
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Internal.IApiBehaviorMetadata
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ApiControllerAttribute : Microsoft.AspNetCore.Mvc.ControllerAttribute, Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, Microsoft.AspNetCore.Mvc.Infrastructure.IApiBehaviorMetadata
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ApiControllerAttribute = class
    inherit ControllerAttribute
    interface IApiBehaviorMetadata
    interface IFilterMetadata
    interface IDisableCookieRedirectMetadata
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ApiControllerAttribute = class
    inherit ControllerAttribute
    interface IApiBehaviorMetadata
    interface IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ApiControllerAttribute = class
    inherit ControllerAttribute
    interface IFilterMetadata
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ApiControllerAttribute = class
    inherit ControllerAttribute
    interface IFilterMetadata
    interface IApiBehaviorMetadata
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ApiControllerAttribute = class
    inherit ControllerAttribute
    interface IApiBehaviorMetadata
    interface IFilterMetadata
Public Class ApiControllerAttribute
Inherits ControllerAttribute
Implements IApiBehaviorMetadata, IDisableCookieRedirectMetadata, IFilterMetadata
Public Class ApiControllerAttribute
Inherits ControllerAttribute
Implements IApiBehaviorMetadata, IFilterMetadata
Public Class ApiControllerAttribute
Inherits ControllerAttribute
Implements IFilterMetadata
Devralma
ApiControllerAttribute
Öznitelikler
Uygulamalar
IDisableCookieRedirectMetadata IFilterMetadata IApiBehaviorMetadata Microsoft.AspNetCore.Mvc.Internal.IApiBehaviorMetadata

Açıklamalar

Daha fazla bilgi için bkz . Tanımlama bilgisi ilkesi ara yazılımı.

Oluşturucular

Veri Akışı Adı Description
ApiControllerAttribute()

BIR türün ve türetilen tüm türlerin HTTP API yanıtlarına hizmet vermek için kullanıldığını gösterir.

Bu öznitelikle dekore edilmiş denetleyiciler, API'ler oluşturmaya yönelik geliştirici deneyimini iyileştirmeyi hedefleyen özellikler ve davranışlarla yapılandırılır.

Bir derlemede dekore edildiğinde, derlemedeki tüm denetleyiciler API davranışına sahip denetleyiciler olarak değerlendirilir. Daha fazla bilgi için bkz. ApiController özniteliği.

Şunlara uygulanır