PassportPrincipal Constructor (PassportIdentity, 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,
	string[] roles
)

Parameters

identity
Type: System.Web.Security.PassportIdentity

An implementation of the IIdentity interface that represents the user.

roles
Type: 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: