Dela via


IdentityErrorDescriber.UserNotInRole(String) Method

Definition

Returns an IdentityError indicating a user is not in the specified role.

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

Parameters

role
String

The duplicate role.

Returns

An IdentityError indicating a user is not in the specified role.

Applies to