DataProtectionPermission.IsUnrestricted Method ()

 

Returns a value indicating whether the current permission is unrestricted.

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

public bool IsUnrestricted()

Return Value

Type: System.Boolean

true if the current permission is unrestricted; otherwise, false.

An unrestricted permission represents access to all resources protected by the permission.

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

rc = sp3.IsUnrestricted();
Console.WriteLine("Is the third permission unrestricted? " +
    (rc ? "Yes" : "No"));

.NET Framework
Available since 2.0
Return to top
Show: