PermissionSet.IsUnrestricted Methode

Definition

Bestimmt, ob die PermissionSetUnrestrictedist.

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

Gibt zurück

true, wenn der PermissionSetUnrestrictedist; andernfalls false.

Beispiele

Das folgende Codebeispiel zeigt die Verwendung der IsUnrestricted-Methode. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die PermissionSet-Klasse bereitgestellt wird.

// 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())

Hinweise

Ein UnrestrictedPermissionSet enthält effektiv alle Berechtigungen, die die IUnrestrictedPermission Schnittstelle implementieren.

Gilt für: