PermissionSet.IsUnrestricted PermissionSet.IsUnrestricted PermissionSet.IsUnrestricted PermissionSet.IsUnrestricted Method


PermissionSetUnrestricted であるかどうかを判断します。Determines whether the PermissionSet is Unrestricted.

 bool IsUnrestricted();
public bool IsUnrestricted ();
member this.IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean


PermissionSetUnrestricted の場合は true、それ以外の場合は falsetrue if the PermissionSet is Unrestricted; otherwise, false.

次のコード例は、 IsUnrestrictedメソッドの使用方法を示しています。The following code example shows the use of the IsUnrestricted method. このコード例は、 PermissionSetクラスに対して提供される大規模な例の一部です。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())


Unrestrictedは、 IUnrestrictedPermissionインターフェイスを実装するすべてのアクセス許可が効果的にPermissionSet格納されます。An UnrestrictedPermissionSet effectively contains all permissions that implement the IUnrestrictedPermission interface.