EnableCorsAttribute Klasa

Definicja

Interfejs, który może służyć do identyfikowania typu, który zapewnia metadane potrzebne do włączenia obsługi mechanizmu CORS.

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
Dziedziczenie
EnableCorsAttribute
Atrybuty
Implementuje

Konstruktory

EnableCorsAttribute()

Tworzy nowe wystąpienie obiektu EnableCorsAttribute z domyślną nazwą zasad zdefiniowaną przez program DefaultPolicyName.

EnableCorsAttribute(String)

Tworzy nowe wystąpienie elementu EnableCorsAttribute o podanej nazwie zasad.

Właściwości

PolicyName

Nazwa zasad, które należy zastosować.

Metody

ToString()

Interfejs, który może służyć do identyfikowania typu, który zapewnia metadane potrzebne do włączenia obsługi mechanizmu CORS.

Dotyczy