共用方式為


MicrosoftAccountAppBuilderExtensions.UseMicrosoftAccountAuthentication 方法

定義

多載

UseMicrosoftAccountAuthentication(IApplicationBuilder)
已淘汰.
已淘汰.

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

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)
已淘汰.
已淘汰.

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

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

MicrosoftAccountMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 Microsoft 帳戶驗證功能。

UseMicrosoftAccountAuthentication(IApplicationBuilder)

來源:
MicrosoftAccountAppBuilderExtensions.cs
來源:
MicrosoftAccountAppBuilderExtensions.cs

警告

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMicrosoftAccountAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMicrosoftAccountAuthentication (app As IApplicationBuilder) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder 加入處理常式的 。

傳回

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

屬性

適用於

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

來源:
MicrosoftAccountAppBuilderExtensions.cs
來源:
MicrosoftAccountAppBuilderExtensions.cs

警告

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

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMicrosoftAccountAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::MicrosoftAccount::MicrosoftAccountOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions options);
[System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseMicrosoftAccountAuthentication is obsolete. Configure MicrosoftAccount authentication with AddAuthentication().AddMicrosoftAccount in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.MicrosoftAccount.MicrosoftAccountOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMicrosoftAccountAuthentication (app As IApplicationBuilder, options As MicrosoftAccountOptions) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder 加入處理常式的 。

options
MicrosoftAccountOptions

MicrosoftAccountOptions 指定處理常式的選項。

傳回

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

屬性

適用於

UseMicrosoftAccountAuthentication(IApplicationBuilder, MicrosoftAccountOptions)

MicrosoftAccountMiddleware 中介軟體新增至指定的 IApplicationBuilder ,以啟用 Microsoft 帳戶驗證功能。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseMicrosoftAccountAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::MicrosoftAccountOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseMicrosoftAccountAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.MicrosoftAccountOptions options);
static member UseMicrosoftAccountAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.MicrosoftAccountOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseMicrosoftAccountAuthentication (app As IApplicationBuilder, options As MicrosoftAccountOptions) As IApplicationBuilder

參數

app
IApplicationBuilder

IApplicationBuilder 加入中介軟體的 。

options
MicrosoftAccountOptions

MicrosoftAccountOptions 指定中介軟體的選項。

傳回

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

適用於