Microsoft.AspNetCore.Components.Authorization 命名空間

提供類別,以擷取目前驗證狀態的相關資訊。

類別

AuthenticationState

提供目前已驗證使用者的相關資訊,如果有的話。

AuthenticationStateProvider

提供目前使用者之驗證狀態的相關資訊。

AuthorizeRouteView

結合 和 RouteView 的行為 AuthorizeView ,使其顯示符合指定路由的頁面,但只有在使用者獲得授權才能看到它時。

此外,此元件會提供 類型的 Task<TResult> 級聯參數,讓使用者目前的驗證狀態可供子系使用。

AuthorizeView

根據使用者的授權狀態顯示不同的內容。

AuthorizeViewCore

根據使用者的授權狀態,顯示不同內容的元件基類。

CascadingAuthenticationState

提供類別,以擷取目前驗證狀態的相關資訊。

介面

IHostEnvironmentAuthenticationStateProvider

類別所實作 AuthenticationStateProvider 的介面,可從主機環境接收驗證狀態資訊。

委派

AuthenticationStateChangedHandler

事件的處理常式 AuthenticationStateChanged

備註

如需 Blazor 授權的詳細資訊,請參閱ASP.NET Core Blazor 驗證和授權