PrincipalPermission Constructor (String, String, Boolean)

PrincipalPermission Constructor (String, String, Boolean)


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


Type: System.String

The name of the IPrincipal object's user.

Type: System.String

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

Type: System.Boolean

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.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft