RoleManager<TRole>.SetRoleNameAsync(TRole, String) Method
Definition
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.
Sets the name of the specified role
.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetRoleNameAsync(TRole role, System::String ^ name);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetRoleNameAsync (TRole role, string name);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetRoleNameAsync (TRole role, string? name);
abstract member SetRoleNameAsync : 'Role * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetRoleNameAsync : 'Role * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetRoleNameAsync (role As TRole, name As String) As Task(Of IdentityResult)
Parameters
- role
- TRole
The role whose name should be set.
- name
- String
The name to set.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.