NamedQueryType Complex Type

Not used. Defines a list of named queries that query the event message string for a value and perform a specified action if found.

<xs:complexType name="NamedQueryType">
    <xs:sequence
        minOccurs="0"
    >
        <xs:element name="patternMaps"
            type="PatternMapListType"
         />
        <xs:any
            processContents="lax"
            maxOccurs="unbounded"
            minOccurs="0"
            namespace="##other"
         />
    </xs:sequence>
    <xs:anyAttribute
        processContents="lax"
        namespace="##other"
     />
</xs:complexType>

Child elements

Element Type Description
patternMaps PatternMapListType Defines a list of regular expression pairs that are used to alter the message string.

Examples

The following example shows how to use the namedQueries element. This example takes the contents of the message string and inserts it into the string https://www.messagestring.com. It then replaces the message string with the result. For example, if the message string contained Microsoft, the query would replace the Microsoft message string with https://www.Microsoft.com.

<namedqueries>
   <patternmap name="SearchStrings" format="winrxv1">
       <map name="/${1}/" value="/http:\/\/www\.*\.com\/"/>
   </patternmap>
</namedqueries>

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]