संपादित करें

इसके माध्यम से साझा किया गया


DataProtectionPermission.IsUnrestricted Method

Definition

Returns a value indicating whether the current permission is unrestricted.

public:
 virtual bool IsUnrestricted();
public bool IsUnrestricted ();
abstract member IsUnrestricted : unit -> bool
override this.IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean

Returns

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

Implements

Examples

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") );
rc = sp3.IsUnrestricted();
Console.WriteLine("Is the third permission unrestricted? " +
    (rc ? "Yes" : "No"));
rc = sp3.IsUnrestricted()
Console.WriteLine("Is the third permission unrestricted? " + IIf(rc, "Yes", "No")) 'TODO: For performance reasons this should be changed to nested IF statements

Remarks

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

Applies to