你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceCollectionExtensions.AddFeatureManagement 方法

定义

重载

AddFeatureManagement(IServiceCollection)

添加所需的功能管理服务。

AddFeatureManagement(IServiceCollection, IConfiguration)

添加所需的功能管理服务。

AddFeatureManagement(IServiceCollection)

添加所需的功能管理服务。

public static Microsoft.FeatureManagement.IFeatureManagementBuilder AddFeatureManagement (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFeatureManagement : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function AddFeatureManagement (services As IServiceCollection) As IFeatureManagementBuilder

参数

services
IServiceCollection

将功能管理服务添加到的服务集合。

返回

IFeatureManagementBuilder可用于自定义特征管理功能的 。

适用于

AddFeatureManagement(IServiceCollection, IConfiguration)

添加所需的功能管理服务。

public static Microsoft.FeatureManagement.IFeatureManagementBuilder AddFeatureManagement (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration configuration);
static member AddFeatureManagement : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function AddFeatureManagement (services As IServiceCollection, configuration As IConfiguration) As IFeatureManagementBuilder

参数

services
IServiceCollection

将功能管理服务添加到的服务集合。

configuration
IConfiguration

将用于获取功能设置的特定 IConfiguration 实例。

返回

IFeatureManagementBuilder可用于自定义特征管理功能的 。

适用于