Share via


DataProtectionPermission.IsUnrestricted Método

Definición

Devuelve un valor que indica si el permiso actual no está restringido.

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

Devoluciones

true si el permiso actual no está restringido; de lo contrario, false.

Implementaciones

Ejemplos

En el ejemplo de código siguiente se muestra el uso del IsUnrestricted método . Este ejemplo de código es parte de un ejemplo más grande proporcionado para la clase DataProtectionPermission.

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

Comentarios

Un permiso sin restricciones representa el acceso a todos los recursos protegidos por el permiso.

Se aplica a