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

参数

返回

IServiceCollection

适用于