Export (0) Print
Expand All

PassportPrincipal.PassportPrincipal Constructor

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.

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

public PassportPrincipal (
	PassportIdentity identity,
	string[] roles
)
public PassportPrincipal (
	PassportIdentity identity, 
	String[] roles
)
public function PassportPrincipal (
	identity : PassportIdentity, 
	roles : String[]
)
Not applicable.

Parameters

identity

An implementation of the IIdentity interface that represents the user.

roles

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

Exception typeCondition

ArgumentNullException

identity is a null reference (Nothing in Visual Basic).

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft