IdentityErrorDescriber.UserAlreadyInRole(String) 方法

定义

返回一个 , IdentityError 指示用户已位于指定的 role中。

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

参数

role
String

重复角色。

返回

一个 IdentityError ,指示用户已位于指定的 role中。

适用于