EnableCorsAttribute クラス

定義

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 IEnableCorsAttribute
    interface ICorsMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type EnableCorsAttribute = class
    inherit Attribute
    interface ICorsMetadata
    interface IEnableCorsAttribute
Public Class EnableCorsAttribute
Inherits Attribute
Implements IEnableCorsAttribute
Public Class EnableCorsAttribute
Inherits Attribute
Implements ICorsMetadata, IEnableCorsAttribute
継承
EnableCorsAttribute
属性
実装

コンストラクター

名前 説明
EnableCorsAttribute()

によって定義された既定のポリシー名を使用して、 の EnableCorsAttribute 新しいインスタンスを DefaultPolicyName作成します。

EnableCorsAttribute(String)

指定したポリシー名を使用して、 EnableCorsAttribute の新しいインスタンスを作成します。

プロパティ

名前 説明
PolicyName

適用する必要があるポリシーの名前。

メソッド

名前 説明
ToString()

CORS サポートを有効にするために必要なメタデータを提供する型を識別するために使用できるインターフェイス。

適用対象