Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PassportPrincipal Constructor (PassportIdentity^, array<String^>^)

 

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.

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public:
PassportPrincipal(
	PassportIdentity^ identity,
	array<String^>^ roles
)

Parameters

identity
Type: System.Web.Security::PassportIdentity^

An implementation of the IIdentity interface that represents the user.

roles
Type: array<System::String^>^

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

Exception Condition
ArgumentNullException

identity is null.

This class has been deprecated and is no longer supported. Microsoft Passport Network has been replaced by Windows Live ID. For more information about how to use Windows Live ID to authenticate users in a Web application, see Windows Live ID SDK.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft