ServiceCollectionExtensions.AddFeatureManagement 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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,可用來自訂功能管理功能。