PermissionSet.ContainsNonCodeAccessPermissions PermissionSet.ContainsNonCodeAccessPermissions PermissionSet.ContainsNonCodeAccessPermissions PermissionSet.ContainsNonCodeAccessPermissions Method

定義

PermissionSet が、CodeAccessPermission から派生していないアクセス許可を含むかどうかを示す値を取得します。Gets a value indicating whether the PermissionSet contains permissions that are not derived from CodeAccessPermission.

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

戻り値

PermissionSetCodeAccessPermission から派生していないアクセス許可を含む場合は true。それ以外の場合は falsetrue if the PermissionSet contains permissions that are not derived from CodeAccessPermission; otherwise, false.

次のコード例は、 ContainsNonCodeAccessPermissionsメソッドの使用方法を示しています。The following code example shows the use of the ContainsNonCodeAccessPermissions method. このコード例は、 PermissionSetクラスに対して提供される大規模な例の一部です。This code example is part of a larger example provided for the PermissionSet class.

// 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())

適用対象