PermissionSet::IsUnrestricted Method ()

 

Determines whether the PermissionSet is Unrestricted.

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

public:
bool IsUnrestricted()

Return Value

Type: System::Boolean

true if the PermissionSet is Unrestricted; otherwise, false.

An UnrestrictedPermissionSet effectively contains all permissions that implement the IUnrestrictedPermission interface.

The following code example shows the use of the IsUnrestricted method. This code example is part of a larger example provided for the PermissionSet class.

// Check for an unrestricted permission set.
PermissionSet^ ps7 = gcnew PermissionSet( PermissionState::Unrestricted );
Console::WriteLine( "Permission set is unrestricted = {0}", ps7->IsUnrestricted() );

.NET Framework
Available since 1.1
Return to top
Show: