This documentation is archived and is not being maintained.

PrincipalPermission.PrincipalPermission(String, String, Boolean) Constructor

Initializes a new instance of the PrincipalPermission class for the specified name, role, and authentication status.

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)

public PrincipalPermission (
	string name,
	string role,
	bool isAuthenticated
)
public PrincipalPermission (
	String name, 
	String role, 
	boolean isAuthenticated
)
public function PrincipalPermission (
	name : String, 
	role : String, 
	isAuthenticated : boolean
)
Not applicable.

Parameters

name

The name of the IPrincipal object's user.

role

The role of the IPrincipal object's user (for example, Administrator).

isAuthenticated

true to signify that the user is authenticated; otherwise, false.

Both the name parameter and the role parameter must match for this permission to match the active IPrincipal and associated IIdentity.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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, 1.1, 1.0
Show: