IFilterFields

[This is preliminary documentation and subject to change.]

This interface is the collection of fields in a generic filter that have been set to match announcement fields. With this collection, you can add or remove fields for matching or iterate through the fields currently used by the filter.

Following is a preliminary description of the interface.

interface IFilterFields : IDispatch
{
// The Index parameter is numeric index or the name
[id(DISPID_VALUE)] 
HRESULT Item([in] VARIANT Index, [out, retval] IFilterField ** lppifReturn); 
[id(1), propget] 
HRESULT Count([out, retval] long *lplReturn);
[id(2)] 
HRESULT Add([in] BSTR Name);
[id(3)] 
HRESULT Remove([in] BSTR Name);
[id(DISPID_NEWENUM), restricted] 
HRESULT _NewEnum([out, retval] IUnknown **pUnkRetVal);
};
 

The Item method can take either a BSTR for the field name, or a numeric index.