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

UseForFeatureExtensions.UseForFeature 方法

定义

有条件地在请求管道中创建重新加入main管道的分支。

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseForFeature (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string featureName, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configuration);
static member UseForFeature : Microsoft.AspNetCore.Builder.IApplicationBuilder * string * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseForFeature (app As IApplicationBuilder, featureName As String, configuration As Action(Of IApplicationBuilder)) As IApplicationBuilder

参数

featureName
String

需要启用才能采用的功能使用此应用程序分支

configuration
Action<IApplicationBuilder>

配置要执行的分支操作

返回

适用于