DirectShow Animated Header -- IAMCollection Object DirectShow Animated Header -- IAMCollection Object* Microsoft DirectShow SDK
*Index  *Topic Contents
*Previous Topic: Visual Basic Objects
*Next Topic: IBasicAudio Object

IAMCollection Object


The filter graph manager exposes the IAMCollection object, which allows access to object collections. These collections contain IPinInfo, IFilterInfo, or IMediaTypeInfo objects.

Properties
Name Description
Count Returns the number of items in the collection.

Methods
Name Description
Item Retrieves the specified member of the collection.


Count Property (IAMCollection Object)

IAMCollection Object

Returns the number of items in the collection.

objCollection.Count

Parts
objCollection
Object expression that evaluates to an IAMCollection object.


Item Method (IAMCollection Object)

IAMCollection Object

Retrieves the specified collection member and stores it in the passed-in object.

objCollection.Item lItem, objNew

Parts
objCollection
Object expression that evaluates to an IAMCollection object.
lItem
Index of the item to retrieve.
objNew
Object expression that can evaluate to an IFilterInfo, IPinInfo, or IMediaTypeInfo object depending on the collection type. This argument will contain the retrieved item.
Remarks

The index value ranges from 0 to (Count – 1).

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page