MapType Complex Type
Defines a list of name/value pairs.
<xs:complexType name="MapType">
<xs:choice
maxOccurs="unbounded"
>
<xs:element name="valueMap"
type="ValueMapType"
/>
<xs:element name="bitMap"
type="BitMapType"
/>
</xs:choice>
</xs:complexType>
Child elements
Element | Type | Description |
---|---|---|
bitMap | BitMapType | Defines a list of name/value pairs that map bit values and string values. |
valueMap | ValueMapType | Defines a list of name/value pairs that map integer values and string values. |
Remarks
Typically, you create maps to provide enumerated string values for event data.
Examples
The following example shows how to specify a value map and bitmap.
<maps>
<valueMap name="MyValueMap">
<map value="5" message="$(string.value5)"/>
<map value="45" message="$(string.value45)"/>
</valueMap>
<bitMap name="MyBitmap">
<map value="0x8" message="$(string.bit3)/>
<map value="0x80" message="$(string.bit7)/>
</bitMap>
</maps>
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |