Compartir a través de


PermissionSet.IsUnrestricted Método

Definición

Determina si el PermissionSet es 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

Devoluciones

true si el PermissionSet es Unrestricted; de lo contrario, false.

Ejemplos

En el ejemplo de código siguiente se muestra el uso del método IsUnrestricted. Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la clase 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())

Comentarios

Un UnrestrictedPermissionSet contiene eficazmente todos los permisos que implementan la interfaz IUnrestrictedPermission.

Se aplica a