IdentityBuilder.AddRoleManager<TRoleManager> Method
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 a RoleManager<TRole> for the RoleType.
public:
generic <typename TRoleManager>
where TRoleManager : class virtual Microsoft::AspNetCore::Identity::IdentityBuilder ^ AddRoleManager();
C#
public virtual Microsoft.AspNetCore.Identity.IdentityBuilder AddRoleManager<TRoleManager> () where TRoleManager : class;
abstract member AddRoleManager : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'RoleManager : null)
override this.AddRoleManager : unit -> Microsoft.AspNetCore.Identity.IdentityBuilder (requires 'RoleManager : null)
Public Overridable Function AddRoleManager(Of TRoleManager As Class) () As IdentityBuilder
- TRoleManager
The type of the role manager to add.
The current IdentityBuilder instance.
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |