API 9.3.7 ITcEnumEventEx The ITcEnumEventsEx interface is used to iterate through a list of events. This interface is provided to use better compatibility to the .NET programming languages. It implements the IEnumVARIANT interface to provide a StandardEnumerator. If you are programming in C++ you might want to use the previous ITcEnumEvents [ } 150] interface Table 21: Methods and Properties in Vtable Order Visual Studio 2005 C# Sample Code : foreach(TcEventevtinnewTcEventLog().EnumActiveEventsEx()) evt.Reset(); 9.3.7.1 Item ITcEnumEvents [ } 150] This method returns an Item in the collection.
HRESULT Item( [in] int Index, [out, retval]ITcEvent** pVal ); Parameter Index [in] Id of the event to be returned pVal [out] To the element at the requested index. return Values S_OK Function was successfully called. Remarks Depending on the programming language you are using, you might rather want to use the objects standard enumerator instead of its interface methods. TcEventLogger 155 Version:
1.1 IUnknown Methods Description QueryInterface returns a pointer to the interface you query for AddRef Increment the reference counter Release Decrements the reference counter ITcEnumEventsExMeth- ods Description Item [} 155] Get one item in the collection Add [} 156] Returns the next number of events in the enumeration sequence Count [} 156] Returns the next number of events in the enumeration sequence Remove [} 156] Returns the next number of events in the enumeration sequence GetEnumerator Returns a standard IEnumerator object