AspNetCoreFeatureManagementBuilderExtensions.UseDisabledFeaturesHandler 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseDisabledFeaturesHandler(IFeatureManagementBuilder, IDisabledFeaturesHandler) |
註冊停用的功能處理常式。 這會針對需要未啟用功能的 MVC 動作叫用。 |
UseDisabledFeaturesHandler(IFeatureManagementBuilder, Action<IEnumerable<String>,ActionExecutingContext>) |
提供指定內嵌停用功能處理常式的方式。 |
UseDisabledFeaturesHandler(IFeatureManagementBuilder, IDisabledFeaturesHandler)
註冊停用的功能處理常式。 這會針對需要未啟用功能的 MVC 動作叫用。
public static Microsoft.FeatureManagement.IFeatureManagementBuilder UseDisabledFeaturesHandler (this Microsoft.FeatureManagement.IFeatureManagementBuilder builder, Microsoft.FeatureManagement.Mvc.IDisabledFeaturesHandler disabledFeaturesHandler);
static member UseDisabledFeaturesHandler : Microsoft.FeatureManagement.IFeatureManagementBuilder * Microsoft.FeatureManagement.Mvc.IDisabledFeaturesHandler -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function UseDisabledFeaturesHandler (builder As IFeatureManagementBuilder, disabledFeaturesHandler As IDisabledFeaturesHandler) As IFeatureManagementBuilder
參數
- builder
- IFeatureManagementBuilder
功能管理產生器。
- disabledFeaturesHandler
- IDisabledFeaturesHandler
停用的功能處理常式。
傳回
功能管理產生器。
適用於
UseDisabledFeaturesHandler(IFeatureManagementBuilder, Action<IEnumerable<String>,ActionExecutingContext>)
提供指定內嵌停用功能處理常式的方式。
public static Microsoft.FeatureManagement.IFeatureManagementBuilder UseDisabledFeaturesHandler (this Microsoft.FeatureManagement.IFeatureManagementBuilder builder, Action<System.Collections.Generic.IEnumerable<string>,Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext> handler);
static member UseDisabledFeaturesHandler : Microsoft.FeatureManagement.IFeatureManagementBuilder * Action<seq<string>, Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext> -> Microsoft.FeatureManagement.IFeatureManagementBuilder
<Extension()>
Public Function UseDisabledFeaturesHandler (builder As IFeatureManagementBuilder, handler As Action(Of IEnumerable(Of String), ActionExecutingContext)) As IFeatureManagementBuilder
參數
- builder
- IFeatureManagementBuilder
功能管理產生器。
- handler
- Action<IEnumerable<String>,ActionExecutingContext>
停用功能的內嵌處理常式。
傳回
功能管理產生器。