TwitterAppBuilderExtensions.UseTwitterAuthentication 方法

定義

多載

UseTwitterAuthentication(IApplicationBuilder)
已淘汰.
已淘汰.

使用TwitterAuthentication 已過時。 使用 AddAuthentication () 設定 Twitter 驗證。在 ConfigureServices 中新增Twitter。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)
已淘汰.
已淘汰.

使用TwitterAuthentication 已過時。 使用 AddAuthentication () 設定 Twitter 驗證。在 ConfigureServices 中新增Twitter。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

TwitterMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 Twitter 驗證功能。

UseTwitterAuthentication(IApplicationBuilder)

來源:
TwitterAppBuilderExtensions.cs
來源:
TwitterAppBuilderExtensions.cs

警告

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

使用TwitterAuthentication 已過時。 使用 AddAuthentication () 設定 Twitter 驗證。在 ConfigureServices 中新增Twitter。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

C#
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
C#
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
C#
[System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);

參數

app
IApplicationBuilder

IApplicationBuilder 加入處理常式的 。

傳回

完成作業之後,這個執行個體的參考。

屬性

適用於

ASP.NET Core 2.2 及其他版本
產品 版本 (已淘汰)
ASP.NET Core 1.0, 1.1 (2.0, 2.1, 2.2)

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

來源:
TwitterAppBuilderExtensions.cs
來源:
TwitterAppBuilderExtensions.cs

警告

UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

使用TwitterAuthentication 已過時。 使用 AddAuthentication () 設定 Twitter 驗證。在 ConfigureServices 中新增Twitter。 如需更多詳細資料,請參閱 https://go.microsoft.com/fwlink/?linkid=845470 \(英文\)。

C#
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions options);
C#
[System.Obsolete("UseTwitterAuthentication is obsolete. Configure Twitter authentication with AddAuthentication().AddTwitter in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Twitter.TwitterOptions options);

參數

app
IApplicationBuilder

IApplicationBuilder 加入處理常式的 。

options
TwitterOptions

要設定所提供 TwitterOptions 之 的動作委派。

傳回

完成作業之後,這個執行個體的參考。

屬性

適用於

ASP.NET Core 2.2 及其他版本
產品 版本 (已淘汰)
ASP.NET Core (2.0, 2.1, 2.2)

UseTwitterAuthentication(IApplicationBuilder, TwitterOptions)

TwitterMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 Twitter 驗證功能。

C#
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseTwitterAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.TwitterOptions options);

參數

app
IApplicationBuilder

IApplicationBuilder 加入中介軟體的 。

options
TwitterOptions

要設定所提供 TwitterOptions 之 的動作委派。

傳回

完成作業之後,這個執行個體的參考。

適用於

ASP.NET Core 1.1 和 ASP.NET Core 1.0
產品 版本
ASP.NET Core 1.0, 1.1