DisableCorsAttribute 类

定义

一个接口,可用于标识类型,该类型提供 metdata 来禁用资源的 cors。

public ref class DisableCorsAttribute : Attribute, Microsoft::AspNetCore::Cors::Infrastructure::IDisableCorsAttribute
public ref class DisableCorsAttribute : Attribute, Microsoft::AspNetCore::Cors::Infrastructure::ICorsMetadata, Microsoft::AspNetCore::Cors::Infrastructure::IDisableCorsAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public class DisableCorsAttribute : Attribute, Microsoft.AspNetCore.Cors.Infrastructure.IDisableCorsAttribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public class DisableCorsAttribute : Attribute, Microsoft.AspNetCore.Cors.Infrastructure.ICorsMetadata, Microsoft.AspNetCore.Cors.Infrastructure.IDisableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type DisableCorsAttribute = class
    inherit Attribute
    interface IDisableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type DisableCorsAttribute = class
    inherit Attribute
    interface ICorsMetadata
    interface IDisableCorsAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type DisableCorsAttribute = class
    inherit Attribute
    interface IDisableCorsAttribute
    interface ICorsMetadata
Public Class DisableCorsAttribute
Inherits Attribute
Implements IDisableCorsAttribute
Public Class DisableCorsAttribute
Inherits Attribute
Implements ICorsMetadata, IDisableCorsAttribute
继承
DisableCorsAttribute
属性
实现

构造函数

DisableCorsAttribute()

一个接口,可用于标识类型,该类型提供 metdata 来禁用资源的 cors。

方法

ToString()

一个接口,可用于标识类型,该类型提供 metdata 来禁用资源的 cors。

适用于