ItemType.ItemTypeMultimediaType enum if for getting Multimedia Types out of Tridion and not Multimedia Components. The
ItemType.ItemTypeComponent grabs all components, normal and multimedia. You could always do your filtering programatically, however this could be very inefficient if you have thousands of components you need to sort through. Something that you can try though to ensure you are just pulling back the data you need is playing with the "BasedOnSchema" condition and passing it the schemas (or ID's of the schemas) of the multimedia components that you want to return. If you already know the Multimedia Schemas of the components you want to search for, you could pass into this Condition:
- One Schema object
- An array of Schema objects
- A TCM URI
- An array of TCM URIs
- A collection of Schema object (a TDS.Schemas object)
Using the "BasedOnSchema":
ListRowFilter rowFilter = tdse.CreateListRowFilter();
Note that when you use the "BasedOnSchema" condition, you don't have to specify the "ItemType" condition as its already assumed that its of type "ItemType.ItemTypeComponent".
If you want to be a bit more dynamic (that is, you don't know the multimedia schemas off hand and you just want to pull everything out that is using one), you could do two passes of
GetListItems. The first pass you could grab all of the multimedia schemas, and then use that data to build the correct arguments for "BasedOnSchema" for your second pass of
GetListItems to get all of the components using those schemas.
An example of getting all of the multimeida schemas out, you can do something like:
ListRowFilter schemaRowFilter = tdse.CreateListRowFilter();
Note that you don't have to put the "ItemType" condition in the above, when using "SchemaPurpose" it will automatically use the type
Hope that helps!