PermissionSet.Intersect(PermissionSet) 메서드

정의

현재 PermissionSet 및 지정된 PermissionSet의 공통 사용 권한 집합을 만들어 반환합니다.

public:
 System::Security::PermissionSet ^ Intersect(System::Security::PermissionSet ^ other);
public:
 virtual System::Security::PermissionSet ^ Intersect(System::Security::PermissionSet ^ other);
public System.Security.PermissionSet Intersect (System.Security.PermissionSet other);
public System.Security.PermissionSet? Intersect (System.Security.PermissionSet? other);
public virtual System.Security.PermissionSet Intersect (System.Security.PermissionSet other);
member this.Intersect : System.Security.PermissionSet -> System.Security.PermissionSet
abstract member Intersect : System.Security.PermissionSet -> System.Security.PermissionSet
override this.Intersect : System.Security.PermissionSet -> System.Security.PermissionSet
Public Function Intersect (other As PermissionSet) As PermissionSet
Public Overridable Function Intersect (other As PermissionSet) As PermissionSet

매개 변수

other
PermissionSet

현재 PermissionSet와 공통되는 사용 권한 집합입니다.

반환

PermissionSet

현재 PermissionSet 및 지정된 대상에서 공통되는 새 사용 권한 집합입니다. 공통 부분이 비어 있으면 이 개체는 null 입니다.

예제

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

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

설명

두 권한 집합의 교차점은 둘 다 공통적으로 설명하는 작업 집합을 설명하는 권한 집합입니다. 특히 두 권한 집합을 모두 통과하는 모든 요구가 교차를 통과하게 하는 최소 사용 권한을 나타냅니다.

두 집합에 있는 각 사용 권한 유형에 대해 해당 사용 권한의 두 인스턴스는 사용 권한의 Intersect 메서드를 사용하여 교차됩니다. 결과 사용 권한은 결과 PermissionSet권한에 포함됩니다. 두 집합 중 하나에만 있는 사용 권한 형식은 결과 집합에서 제외됩니다.

적용 대상