EnableCorsAttribute Sınıf

Tanım

CORS desteğini etkinleştirmek için gereken meta verileri sağlayan bir türü tanımlamak için kullanılabilecek bir arabirim.

public ref class EnableCorsAttribute : Attribute, Microsoft::AspNetCore::Cors::Infrastructure::IEnableCorsAttribute
public ref class EnableCorsAttribute : Attribute, Microsoft::AspNetCore::Cors::Infrastructure::ICorsMetadata, Microsoft::AspNetCore::Cors::Infrastructure::IEnableCorsAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class EnableCorsAttribute : Attribute, Microsoft.AspNetCore.Cors.Infrastructure.IEnableCorsAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class EnableCorsAttribute : Attribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.IEnableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableCorsAttribute = class
    inherit Attribute
    interface IEnableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableCorsAttribute = class
    inherit Attribute
    interface ICorsMetadata
    interface IEnableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableCorsAttribute = class
    inherit Attribute
    interface IEnableCorsAttribute
    interface ICorsMetadata
Public Class EnableCorsAttribute
Inherits Attribute
Implements IEnableCorsAttribute
Public Class EnableCorsAttribute
Inherits Attribute
Implements ICorsMetadata, IEnableCorsAttribute
Devralma
EnableCorsAttribute
Öznitelikler
Uygulamalar

Oluşturucular

EnableCorsAttribute()

tarafından DefaultPolicyNametanımlanan varsayılan ilke adıyla öğesinin yeni bir örneğini EnableCorsAttribute oluşturur.

EnableCorsAttribute(String)

Sağlanan ilke adıyla öğesinin EnableCorsAttribute yeni bir örneğini oluşturur.

Özellikler

PolicyName

Uygulanması gereken ilkenin adı.

Yöntemler

ToString()

CORS desteğini etkinleştirmek için gereken meta verileri sağlayan bir türü tanımlamak için kullanılabilecek bir arabirim.

Şunlara uygulanır