DefaultCorsPolicyProvider(IOptions<CorsOptions>) 构造函数

定义

创建 DefaultCorsPolicyProvider 的新实例。

public:
 DefaultCorsPolicyProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Cors::Infrastructure::CorsOptions ^> ^ options);
public DefaultCorsPolicyProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> options);
new Microsoft.AspNetCore.Cors.Infrastructure.DefaultCorsPolicyProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Cors.Infrastructure.CorsOptions> -> Microsoft.AspNetCore.Cors.Infrastructure.DefaultCorsPolicyProvider
Public Sub New (options As IOptions(Of CorsOptions))

参数

options
IOptions<CorsOptions>

为应用程序配置的选项。

适用于