PermissionSet.Intersect(PermissionSet) PermissionSet.Intersect(PermissionSet) PermissionSet.Intersect(PermissionSet) PermissionSet.Intersect(PermissionSet) Method

定義

現在の PermissionSet と指定した PermissionSet の積集合であるアクセス許可セットを作成して返します。Creates and returns a permission set that is the intersection of the current PermissionSet and the specified PermissionSet.

public:
 System::Security::PermissionSet ^ Intersect(System::Security::PermissionSet ^ other);
public System.Security.PermissionSet Intersect (System.Security.PermissionSet other);
member this.Intersect : System.Security.PermissionSet -> System.Security.PermissionSet
Public Function Intersect (other As PermissionSet) As PermissionSet

パラメーター

other
PermissionSet PermissionSet PermissionSet PermissionSet

現在の PermissionSet と交差するアクセス許可セット。A permission set to intersect with the current PermissionSet.

戻り値

現在の PermissionSet と指定されたターゲットの積集合を表す新しいアクセス許可セット。A new permission set that represents the intersection of the current PermissionSet and the specified target. 積集合が空の場合、このオブジェクトは null です。This object is null if the intersection is empty.

次のコード例の使用を示しています、Intersectメソッド。The following code example shows the use of the Intersect method. このコード例が示されている例の一部、PermissionSetクラス。This code example is part of a larger example provided for the PermissionSet class.

// Display the intersection of two permission sets.
PermissionSet^ ps3 = ps2->Intersect( ps1 );
Console::WriteLine( "The intersection of the first permission set and the second permission set = {0}", ps3 );
// Display the intersection of two permission sets.
PermissionSet ps3 = ps2.Intersect(ps1);
Console.WriteLine("The intersection of the first permission set and "
    + "the second permission set = " + ps3.ToString());
' Display the intersection of two permission sets.
Dim ps3 As PermissionSet = ps2.Intersect(ps1)
Console.WriteLine("The intersection of the first permission set and " & "the second permission set = " & ps3.ToString())

注釈

2 つのアクセス許可セットの積集合は、両方に共通する操作のセットを説明するためのアクセス許可セットです。The intersection of two permission sets is a permission set that describes the set of operations they both describe in common. 具体的には、アクセス許可の両方に適合する要求設定もパスが交差するように、最小限のアクセス許可を表します。Specifically, it represents the minimum permissions such that any demand that passes both permission sets also passes their intersection.

両方のセットに存在するためのアクセス許可の種類ごとに、これらのアクセス許可の 2 つのインスタンスと交差、アクセス許可を使用してIntersectメソッドは、最終的な結果として得られるアクセス許可が含まれているPermissionSetします。For each type of permission that is present in both sets, the two instances of those permissions are intersected using the permission's Intersect method; the resulting permission is included in the resulting PermissionSet. 2 つのセットの 1 つだけに存在するアクセス許可の種類は、結果セットから除外されます。Permission types that exist in only one of the two sets are excluded from the resulting set.

適用対象