Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft