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
)

Parameters

name
Type: System::String^

The name of the IPrincipal object's user.

role
Type: System::String^

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

isAuthenticated
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
Show: