共用方式為


AspNetCoreFeatureManagementBuilderExtensions.UseDisabledFeaturesHandler 方法

定義

多載

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>

停用功能的內嵌處理常式。

傳回

功能管理產生器。

適用於