EnableCorsAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EnableCorsAttribute() |
Creates a new instance of the EnableCorsAttribute with the default policy name defined by DefaultPolicyName. |
EnableCorsAttribute(String) |
Creates a new instance of the EnableCorsAttribute with the supplied policy name. |
EnableCorsAttribute()
- Source:
- EnableCorsAttribute.cs
- Source:
- EnableCorsAttribute.cs
- Source:
- EnableCorsAttribute.cs
Creates a new instance of the EnableCorsAttribute with the default policy name defined by DefaultPolicyName.
public:
EnableCorsAttribute();
public EnableCorsAttribute ();
Public Sub New ()
Applies to
EnableCorsAttribute(String)
- Source:
- EnableCorsAttribute.cs
- Source:
- EnableCorsAttribute.cs
- Source:
- EnableCorsAttribute.cs
Creates a new instance of the EnableCorsAttribute with the supplied policy name.
public:
EnableCorsAttribute(System::String ^ policyName);
public EnableCorsAttribute (string policyName);
public EnableCorsAttribute (string? policyName);
new Microsoft.AspNetCore.Cors.EnableCorsAttribute : string -> Microsoft.AspNetCore.Cors.EnableCorsAttribute
Public Sub New (policyName As String)
Parameters
- policyName
- String
The name of the policy to be applied.