PermissionSet.Intersect(PermissionSet) Yöntem

Tanım

Geçerli PermissionSet ve belirtilen PermissionSetöğesinin kesişimi olan bir izin kümesi oluşturur ve döndürür.

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

Parametreler

other
PermissionSet

Geçerli PermissionSetile kesişecek şekilde ayarlanmış bir izin.

Döndürülenler

Geçerli PermissionSet ve belirtilen hedefin kesişimini temsil eden yeni bir izin kümesi. Bu nesne, null kesişim boşsa olur.

Örnekler

Aşağıdaki kod örneği yönteminin Intersect kullanımını gösterir. Bu kod örneği, sınıfı için PermissionSet sağlanan daha büyük bir örneğin parçasıdır.

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

Açıklamalar

İki izin kümesinin kesişimi, her ikisinin de ortak olarak açıkladıkları işlem kümesini açıklayan bir izin kümesidir. Özellikle, her iki izin kümesini de geçen herhangi bir talebin kesişimini geçirmesi için minimum izinleri temsil eder.

Her iki kümede de bulunan her izin türü için, bu izinlerin iki örneği, iznin Intersect yöntemi kullanılarak kesiştirilir; sonuçta elde edilen izin sonuç PermissionSetiçine eklenir. İki kümeden yalnızca birinde bulunan izin türleri, sonuçta elde edilen kümenin dışında tutulur.

Şunlara uygulanır