CorsPolicyBuilder 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CorsPolicyBuilder(CorsPolicy) |
创建 CorsPolicyBuilder 的新实例。 |
CorsPolicyBuilder(String[]) |
创建 CorsPolicyBuilder 的新实例。 |
CorsPolicyBuilder(CorsPolicy)
- Source:
- CorsPolicyBuilder.cs
- Source:
- CorsPolicyBuilder.cs
- Source:
- CorsPolicyBuilder.cs
创建 CorsPolicyBuilder 的新实例。
public:
CorsPolicyBuilder(Microsoft::AspNetCore::Cors::Infrastructure::CorsPolicy ^ policy);
public CorsPolicyBuilder (Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy policy);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder : Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicy -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Sub New (policy As CorsPolicy)
参数
- policy
- CorsPolicy
将用于初始化生成器的策略。
适用于
CorsPolicyBuilder(String[])
- Source:
- CorsPolicyBuilder.cs
- Source:
- CorsPolicyBuilder.cs
- Source:
- CorsPolicyBuilder.cs
创建 CorsPolicyBuilder 的新实例。
public:
CorsPolicyBuilder(... cli::array <System::String ^> ^ origins);
public CorsPolicyBuilder (params string[] origins);
new Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder : string[] -> Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder
Public Sub New (ParamArray origins As String())
参数
- origins
- String[]
可添加的源列表。
注解
WithOrigins(String[]) 获取有关规范化原点值的详细信息。