Partager via


PermissionSet.IsUnrestricted Méthode

Définition

Détermine si la 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

Retours

true si le PermissionSet est Unrestricted; sinon, false.

Exemples

L’exemple de code suivant montre l’utilisation de la méthode IsUnrestricted. Cet exemple de code fait partie d’un exemple plus large fourni pour la 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())

Remarques

Une UnrestrictedPermissionSet contient efficacement toutes les autorisations qui implémentent l’interface IUnrestrictedPermission.

S’applique à