PassportPrincipal Constructor (PassportIdentity^, array<String^>^)
.NET Framework (current version)
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.
Assembly: System.Web (in System.Web.dll)
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
Available since 2.0
Show: