Bagikan melalui


PrincipalCollection.GetEnumerator Metode

Definisi

Mengembalikan enumerator untuk melakukan iterasi melalui prinsipal dalam PrincipalCollection.

public:
 virtual System::Collections::Generic::IEnumerator<System::DirectoryServices::AccountManagement::Principal ^> ^ GetEnumerator();
public System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal> GetEnumerator ();
[System.Security.SecurityCritical]
public System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal> GetEnumerator ();
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal>
[<System.Security.SecurityCritical>]
abstract member GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal>
override this.GetEnumerator : unit -> System.Collections.Generic.IEnumerator<System.DirectoryServices.AccountManagement.Principal>
Public Function GetEnumerator () As IEnumerator(Of Principal)

Mengembalikan

Yang IEnumerator berisi prinsipal dalam PrincipalCollection.

Penerapan

Atribut

Keterangan

Secara konseptual, setiap instans PrincipalCollection memiliki satu enumerator yang terkait dengannya. Meskipun beberapa panggilan untuk IEnumerable.GetEnumerator mengembalikan objek yang berbeda IEnumerator , mereka memiliki status internal yang sama.

Berlaku untuk