DataProtectionPermission.IsUnrestricted Método

Definição

Retorna um valor que indica se a permissão atual é irrestrita.

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

Retornos

Boolean

true se a permissão for irrestrita; caso contrário, false.

Implementações

Exemplos

O exemplo de código a seguir mostra o uso do IsUnrestricted método. Este exemplo de código faz parte de um exemplo maior fornecido para a 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

Comentários

Uma permissão irrestrita representa o acesso a todos os recursos protegidos pela permissão.

Aplica-se a