EnableCorsAttribute Klasse

Definition

Eine Schnittstelle, die zum Identifizieren eines Typs verwendet werden kann, der Metadaten bereitstellt, die zum Aktivieren der CORS-Unterstützung erforderlich sind.

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
Vererbung
EnableCorsAttribute
Attribute
Implementiert

Konstruktoren

EnableCorsAttribute()

Erstellt eine neue instance von mit EnableCorsAttribute dem durch definierten DefaultPolicyNameStandardrichtliniennamen.

EnableCorsAttribute(String)

Erstellt eine neue instance von EnableCorsAttribute mit dem angegebenen Richtliniennamen.

Eigenschaften

PolicyName

Der Name der Richtlinie, die angewendet werden muss.

Methoden

ToString()

Eine Schnittstelle, die zum Identifizieren eines Typs verwendet werden kann, der Metadaten bereitstellt, die zum Aktivieren der CORS-Unterstützung erforderlich sind.

Gilt für: