ExternalLoginInfo(ClaimsPrincipal, String, String, String) 构造函数

定义

创建 ExternalLoginInfo 的新实例

public:
 ExternalLoginInfo(System::Security::Claims::ClaimsPrincipal ^ principal, System::String ^ loginProvider, System::String ^ providerKey, System::String ^ displayName);
public ExternalLoginInfo (System.Security.Claims.ClaimsPrincipal principal, string loginProvider, string providerKey, string displayName);
new Microsoft.AspNetCore.Identity.ExternalLoginInfo : System.Security.Claims.ClaimsPrincipal * string * string * string -> Microsoft.AspNetCore.Identity.ExternalLoginInfo
Public Sub New (principal As ClaimsPrincipal, loginProvider As String, providerKey As String, displayName As String)

参数

principal
ClaimsPrincipal

ClaimsPrincipal要与此登录名关联的 。

loginProvider
String

与此登录信息关联的提供程序。

providerKey
String

登录提供程序提供的此用户的唯一标识符。

displayName
String

登录提供程序的显示名称。

适用于