PermissionSet.IsUnrestricted Methode

Definition

Bestimmt, ob PermissionSetUnrestricted ist.Determines whether the PermissionSet is 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

Gibt zurück

true, wenn PermissionSetUnrestricted ist, andernfalls false.true if the PermissionSet is Unrestricted; otherwise, false.

Beispiele

Im folgenden Codebeispiel wird die Verwendung der IsUnrestricted-Methode veranschaulicht.The following code example shows the use of the IsUnrestricted method. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die PermissionSet-Klasse bereitgestellt wird.This code example is part of a larger example provided for the PermissionSet class.

// 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 der effektiv alle Berechtigungen enthält, die die IUnrestrictedPermission-Schnittstelle implementieren.An UnrestrictedPermissionSet effectively contains all permissions that implement the IUnrestrictedPermission interface.

Gilt für: