BuilderExtensions.UseIdentity(IApplicationBuilder) 方法

定義

警告

This method is obsolete and will be removed in a future version. The recommended alternative is UseAuthentication(). See https://go.microsoft.com/fwlink/?linkid=845470

此方法已淘汰,將會在未來的版本中移除。 建議的替代方法是 UseAuthentication(IApplicationBuilder)

啟用目前應用程式的 ASP.NET 身分識別。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseIdentity(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseIdentity (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is UseAuthentication(). See https://go.microsoft.com/fwlink/?linkid=845470")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseIdentity (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseIdentity : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is UseAuthentication(). See https://go.microsoft.com/fwlink/?linkid=845470")>]
static member UseIdentity : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseIdentity (app As IApplicationBuilder) As IApplicationBuilder

參數

app
IApplicationBuilder

這個 IApplicationBuilder 方法擴充的實例。

傳回

這個 IApplicationBuilder 方法擴充的實例。

屬性

適用於