Click or drag to resize
ApplicationRoleStoreTRoleUpdateAsync Method
Updates a role in a store as an asynchronous operation.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task<IdentityResult> UpdateAsync(
	TRole role,
	CancellationToken cancellationToken
)

Parameters

role
Type: TRole
The role to update in the store.
cancellationToken
Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.

Return Value

Type: TaskIdentityResult
A TaskTResult that represents the IdentityResult of the asynchronous query.

Implements

IRoleStore.UpdateAsync(UTP, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionrole is null.
InvalidOperationExceptionThrown when role is not found.
See Also