다음을 통해 공유


PermissionSet.ContainsNonCodeAccessPermissions 메서드

정의

PermissionSetCodeAccessPermission에서 파생되지 않은 사용 권한이 있는지 여부를 나타내는 값을 가져옵니다.

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

반환

Boolean

PermissionSetCodeAccessPermission에서 파생되지 않은 사용 권한이 있으면 true이고, 그러지 않으면 false입니다.

예제

다음 코드 예제에서는 메서드의 사용을 보여 있습니다 ContainsNonCodeAccessPermissions . 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 PermissionSet 클래스입니다.

// Display the result of a call to the ContainsNonCodeAccessPermissions method.
// Gets a value indicating whether the PermissionSet contains permissions
// that are not derived from CodeAccessPermission.
// Returns true if the PermissionSet contains permissions that are not
// derived from CodeAccessPermission; otherwise, false.
Console::WriteLine( "ContainsNonCodeAccessPermissions method returned {0}", ps1->ContainsNonCodeAccessPermissions() );
// Display the result of a call to the ContainsNonCodeAccessPermissions method.
// Gets a value indicating whether the PermissionSet contains permissions
// that are not derived from CodeAccessPermission.
// Returns true if the PermissionSet contains permissions that are not
// derived from CodeAccessPermission; otherwise, false.
Console.WriteLine("ContainsNonCodeAccessPermissions method returned " +
    ps1.ContainsNonCodeAccessPermissions());
' Display the result of a call to the ContainsNonCodeAccessPermissions method.
' Gets a value indicating whether the PermissionSet contains permissions 
' that are not derived from CodeAccessPermission.
' Returns true if the PermissionSet contains permissions that are not 
' derived from CodeAccessPermission; otherwise, false.
Console.WriteLine("ContainsNonCodeAccessPermissions method returned " & ps1.ContainsNonCodeAccessPermissions())

적용 대상