Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CascadingAuthenticationStateServiceCollectionExtensions.AddCascadingAuthenticationState Method

Definition

Namespace:
Microsoft.Extensions.DependencyInjection
Assembly:
Microsoft.AspNetCore.Components.Authorization.dll
Package:
Microsoft.AspNetCore.Components.Authorization v10.0.0
Package:
Microsoft.AspNetCore.Components.Authorization v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.Authorization v8.0.19
Package:
Microsoft.AspNetCore.Components.Authorization v9.0.8
Source:
CascadingAuthenticationStateServiceCollectionExtensions.cs
Source:
CascadingAuthenticationStateServiceCollectionExtensions.cs
Source:
CascadingAuthenticationStateServiceCollectionExtensions.cs
Source:
CascadingAuthenticationStateServiceCollectionExtensions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Adds cascading authentication state to the serviceCollection. This is equivalent to having a CascadingAuthenticationState component at the root of your component hierarchy.

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

Parameters

serviceCollection
IServiceCollection

The IServiceCollection.

Returns

The IServiceCollection.

Applies to


Feedback

Was this page helpful?