Source1_Filter, Source2_Filter, Source3_Filter Properties (IMessageFilterNames Interface)



Source1_Filter, Source2_Filter, and Source3_Filter are  read-only properties of the IMessageFilterNames interface that returns the filter name expected by the List2 method for filtering by application provided source names.


Source properties of a message are provided by an application to show a chain of causation (root cause) or related items that contributed to the condition described by the message. The ProgramName property of a LogMessage or LogMessage2 object may also indicate part of the message causation.  In the case of a complex application with embedded controls, the message log reader may wish to consider the ProgramName in association with any provided source message properties.  A property, SourceAny_Filter, is also provided to allow the caller of List2 to pass a single matching criteria to be compared to any of the Source1, Source2, or Source3 properties of a message.



object.Source1_Filter object. Source2_Filter object .Source3_Filter

The object placeholder is an object expression that evaluates to a IMessageFilterNames  interface.


The IMessageFilterNames interface can be obtained directly from the MessageLog2.MessageFilterNames property or by using QueryInterface (assignment, in VB, casting in .Net) on a MessageLog or MessageLog2 object.

When adding to the NamedValues collection, the IMessageFilterNames interface acts with Intellisense to show the available parameter options and ensures only names that are supported are used.

Enabling Operational Intelligence