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:
virtual bool IsUnrestricted() sealed

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? {0}", (rc ? (String^)"Yes" : "No") );

.NET Framework
Available since 2.0
Return to top
Show: