CorsPolicyBuilder 构造函数

定义

重载

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[]) 获取有关规范化原点值的详细信息。

适用于