共用方式為


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,可用來自訂功能管理功能。

適用於