編集

次の方法で共有


PassportPrincipal(PassportIdentity, String[]) Constructor

Definition

Initializes a new instance of the PassportPrincipal class from a PassportIdentity instance and an array of role names to which the user represented by that PassportIdentity belongs. This class is deprecated.

public:
 PassportPrincipal(System::Web::Security::PassportIdentity ^ identity, cli::array <System::String ^> ^ roles);
public PassportPrincipal (System.Web.Security.PassportIdentity identity, string[] roles);
new System.Web.Security.PassportPrincipal : System.Web.Security.PassportIdentity * string[] -> System.Web.Security.PassportPrincipal
Public Sub New (identity As PassportIdentity, roles As String())

Parameters

identity
PassportIdentity

An implementation of the IIdentity interface that represents the user.

roles
String[]

An array of role names to which the user represented by the identity parameter belongs.

Exceptions

identity is null.

Remarks

This class has been deprecated and is no longer supported. Microsoft Passport Network was replaced by Windows Live ID.

Applies to