Compartilhar via


PermissionSet.IsUnrestricted Método

Definição

Determina se o PermissionSet está Unrestricted.

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

Retornos

true se o PermissionSet for Unrestricted; caso contrário, false.

Exemplos

O exemplo de código a seguir mostra o uso do método IsUnrestricted. Este exemplo de código faz parte de um exemplo maior fornecido para a classe PermissionSet.

// Check for an unrestricted permission set.
PermissionSet^ ps7 = gcnew PermissionSet( PermissionState::Unrestricted );
Console::WriteLine( "Permission set is unrestricted = {0}", ps7->IsUnrestricted() );
// Check for an unrestricted permission set.
PermissionSet ps7 = new PermissionSet(PermissionState.Unrestricted);
Console.WriteLine("Permission set is unrestricted = " + ps7.IsUnrestricted());
' Check for an unrestricted permission set.
Dim ps7 As New PermissionSet(PermissionState.Unrestricted)
Console.WriteLine("Permission set is unrestricted = " & ps7.IsUnrestricted())

Comentários

Um UnrestrictedPermissionSet contém efetivamente todas as permissões que implementam a interface IUnrestrictedPermission.

Aplica-se a