IRoleStore<TRole>.CreateAsync(TRole, CancellationToken) Yöntem

Tanım

Bir depoda zaman uyumsuz işlem olarak yeni bir rol oluşturur.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ CreateAsync(TRole role, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> CreateAsync (TRole role, System.Threading.CancellationToken cancellationToken);
abstract member CreateAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Function CreateAsync (role As TRole, cancellationToken As CancellationToken) As Task(Of IdentityResult)

Parametreler

role
TRole

Mağazada oluşturulacak rol.

cancellationToken
CancellationToken

İşlemin CancellationToken iptal edilmesi gerektiğine ilişkin bildirimleri yaymak için kullanılır.

Döndürülenler

Task<TResult> Zaman uyumsuz sorgunun öğesini IdentityResult temsil eden bir.

Şunlara uygulanır