Share via


DataProtectionPermission.IsUnrestricted Metodo

Definizione

Restituisce un valore che indica se l'autorizzazione corrente è senza restrizioni.

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

Restituisce

true se l'autorizzazione corrente è senza restrizioni; in caso contrario, false.

Implementazioni

Esempio

Nell'esempio di codice seguente viene illustrato l'uso del IsUnrestricted metodo . Questo esempio di codice fa parte di un esempio più ampio fornito per la DataProtectionPermission classe .

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

Commenti

Un'autorizzazione senza restrizioni rappresenta l'accesso a tutte le risorse protette dall'autorizzazione .

Si applica a