EnableCorsAttribute Classe

Definizione

Interfaccia che può essere usata per identificare un tipo che fornisce i metadati necessari per abilitare il supporto 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
Ereditarietà
EnableCorsAttribute
Attributi
Implementazioni

Costruttori

EnableCorsAttribute()

Crea una nuova istanza di EnableCorsAttribute con il nome del criterio predefinito definito da DefaultPolicyName.

EnableCorsAttribute(String)

Crea una nuova istanza di EnableCorsAttribute con il nome del criterio fornito.

Proprietà

PolicyName

Nome del criterio che deve essere applicato.

Metodi

ToString()

Interfaccia che può essere usata per identificare un tipo che fornisce i metadati necessari per abilitare il supporto CORS.

Si applica a