다음을 통해 공유


PermissionSet.IsUnrestricted 메서드

정의

PermissionSet 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

반환

PermissionSet Unrestricted경우 true ; 그렇지 않으면 false.

예제

다음 코드 예제에서는 IsUnrestricted 메서드의 사용을 보여 줄입니다. 이 코드 예제는 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())

설명

Unrestricted PermissionSet IUnrestrictedPermission 인터페이스를 구현하는 모든 권한을 효과적으로 포함합니다.

적용 대상