열거자 개체의 컬렉션을 통해 반복 하는 일관 된 방법을 제공 합니다. 예를 들어, 컬렉션의 문자열에 액세스 하는 간단한 열거자를 정의할 수 있습니다. 복잡 한 열거자는 데이터베이스에서 레코드를 액세스할 수 있습니다.
이 문서에서는 설명 합니다.:
ATL은 열거자에 대 한 모든 표준 개체를 정의 하지 않습니다. 그러나, 그것 않습니다 제공 인프라 구축 CComEnum 및 _Copy 서식 파일을 사용 하 여 쉽게 그들에 대 한。
COM implements enumerators as separate objects that usually support a single interface, IEnumxxxx, where xxxx is the type that is being enumerated. Standard enumerator types defined by COM include: IEnumUnknown, IEnumMoniker, IEnumString, IEnumVARIANT, IEnumFORMATETC, IEnumSTATSTG, IEnumSTATDATA, and IEnumOLEVERB.