IdentityErrorDescriber.UserNotInRole(String) Yöntem

Tanım

Kullanıcının belirtilen roleiçinde olmadığını belirten bir IdentityError döndürür.

public:
 virtual Microsoft::AspNetCore::Identity::IdentityError ^ UserNotInRole(System::String ^ role);
public virtual Microsoft.AspNetCore.Identity.IdentityError UserNotInRole (string role);
abstract member UserNotInRole : string -> Microsoft.AspNetCore.Identity.IdentityError
override this.UserNotInRole : string -> Microsoft.AspNetCore.Identity.IdentityError
Public Overridable Function UserNotInRole (role As String) As IdentityError

Parametreler

role
String

Yinelenen rol.

Döndürülenler

Kullanıcının IdentityError belirtilen roleiçinde olmadığını belirten bir .

Şunlara uygulanır