IdentityErrorDescriber.UserNotInRole(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.
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
.