共用方式為


CascadingAuthenticationStateServiceCollectionExtensions.AddCascadingAuthenticationState 方法

定義

將串連驗證狀態新增至 serviceCollection 。 這相當於在 CascadingAuthenticationState 元件階層的根目錄有元件。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddCascadingAuthenticationState (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
static member AddCascadingAuthenticationState : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddCascadingAuthenticationState (serviceCollection As IServiceCollection) As IServiceCollection

參數

serviceCollection
IServiceCollection

IServiceCollection

傳回

IServiceCollection

適用於