title | description | ms.date | ms.assetid |
---|---|---|---|
EventMappingElement Class |
Describes the methods and properties for the EventMappingElement class which maps friendly event names to related event types. |
10/07/2016 |
715f98e4-5d04-4813-ae6e-ec148f201a2e |
Maps friendly event names to related event types.
class EventMappingElement: CollectionElement
This class contains no methods.
The following table lists the properties exposed by the EventMappingElement
class.
Name | Description |
---|---|
EndEventCode |
A read/write sint32 value that specifies the ending event code of the event mapping range. The default is 2147483647. |
Name |
A read-only unique string value that specifies the friendly name of the event mapping setting. The key property. Note: Duplicate event mapping names may cause a loss of data when the configuration section is saved. |
StartEventCode |
A read/write sint32 value that specifies the starting event code of the event mapping range. The default is 0. |
Type |
A read/write string value that specifies the type of a custom event. The specified type can be the actual class type or a parent type of the event class. If it is an empty string (""), no event is mapped, and the event mapping acts as a placeholder. Note: The type reference is formed as follows (items in brackets are not required): Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z] (for example, "ExampleNameSpace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"). |
This class contains no subclasses.
Instances of this class are contained in the EventMappings
array property of the EventMappingSettings class.
Event codes are mapped to events defined by the constants in the System.Web.Management.WebEventCodes object. The mapping uses a range specified by the StartEventCode
and EndEventCode
properties.
Event mappings enable you to assign friendly names to event sources. The Rules
property of the HealthMonitoringSection class uses these names to associate event sources with the related event consumers, called providers.
EventMappingSettings
Type | Description |
---|---|
Client | - [!INCLUDEiis70] on [!INCLUDEwinvista] - [!INCLUDEiis75] on [!INCLUDEwin7] - [!INCLUDEiis80] on [!INCLUDEwin8] - [!INCLUDEiis100] on [!INCLUDEwin10] |
Server | - [!INCLUDEiis70] on [!INCLUDEwinsrv2008] - [!INCLUDEiis75] on [!INCLUDEwinsrv2008r2] - [!INCLUDEiis80] on [!INCLUDEwinsrv2012] - [!INCLUDEiis85] on [!INCLUDEwinsrv2012r2] - [!INCLUDEiis100] on [!INCLUDEwinsrv2016] |
Product | - [!INCLUDEiis70], [!INCLUDEiis75], [!INCLUDEiis80], [!INCLUDEiis85], [!INCLUDEiis100] |
MOF file | WebAdministration.mof |
System.Web.Management.WebEventCodes
CollectionElement Class
HealthMonitoringSection Class
ProviderSettings Class
RuleSettings Class