AntiforgeryApplicationBuilderExtensions.UseAntiforgery 方法

定义

将防伪中间件添加到管道。

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseAntiforgery (this Microsoft.AspNetCore.Builder.IApplicationBuilder builder);
static member UseAntiforgery : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseAntiforgery (builder As IApplicationBuilder) As IApplicationBuilder

参数

返回

应用生成器。

适用于