IdentityBuilderUIExtensions.AddDefaultUI 方法

定義

多載

AddDefaultUI(IdentityBuilder)

使用名為 Identity 區域中的 Razor Pages,將身分識別的預設獨立 UI 新增至應用程式。

AddDefaultUI(IdentityBuilder, UIFramework)

使用名為 Identity 區域中的 Razor Pages,將身分識別的預設獨立 UI 新增至應用程式。

AddDefaultUI(IdentityBuilder)

使用名為 Identity 區域中的 Razor Pages,將身分識別的預設獨立 UI 新增至應用程式。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddDefaultUI(Microsoft::AspNetCore::Identity::IdentityBuilder ^ builder);
public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultUI (this Microsoft.AspNetCore.Identity.IdentityBuilder builder);
static member AddDefaultUI : Microsoft.AspNetCore.Identity.IdentityBuilder -> Microsoft.AspNetCore.Identity.IdentityBuilder
<Extension()>
Public Function AddDefaultUI (builder As IdentityBuilder) As IdentityBuilder

參數

傳回

IdentityBuilder

備註

若要使用預設 UI,應用程式必須使用 Microsoft.AspNetCore.MvcMicrosoft.AspNetCore.StaticFiles 並包含 _LoginPartial 應用程式可找到的部分檢視。

適用於

AddDefaultUI(IdentityBuilder, UIFramework)

使用名為 Identity 區域中的 Razor Pages,將身分識別的預設獨立 UI 新增至應用程式。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddDefaultUI(Microsoft::AspNetCore::Identity::IdentityBuilder ^ builder, Microsoft::AspNetCore::Identity::UI::UIFramework framework);
public static Microsoft.AspNetCore.Identity.IdentityBuilder AddDefaultUI (this Microsoft.AspNetCore.Identity.IdentityBuilder builder, Microsoft.AspNetCore.Identity.UI.UIFramework framework);
static member AddDefaultUI : Microsoft.AspNetCore.Identity.IdentityBuilder * Microsoft.AspNetCore.Identity.UI.UIFramework -> Microsoft.AspNetCore.Identity.IdentityBuilder
<Extension()>
Public Function AddDefaultUI (builder As IdentityBuilder, framework As UIFramework) As IdentityBuilder

參數

framework
UIFramework

UIFramework

傳回

IdentityBuilder

備註

若要使用預設 UI,應用程式必須使用 Microsoft.AspNetCore.MvcMicrosoft.AspNetCore.StaticFiles 並包含 _LoginPartial 應用程式可找到的部分檢視。

適用於