Bagikan melalui


PermissionSet.IsUnrestricted Metode

Definisi

Menentukan apakah PermissionSetUnrestricted.

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

Mengembalikan

true jika PermissionSetUnrestricted; jika tidak, false.

Contoh

Contoh kode berikut menunjukkan penggunaan metode IsUnrestricted. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk kelas 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())

Keterangan

Unrestricted PermissionSet secara efektif berisi semua izin yang mengimplementasikan antarmuka IUnrestrictedPermission.

Berlaku untuk