EventSource.WriteEvent Method
.NET Framework 4.5
Writes an event by using the provided event identifier and optional arguments.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
WriteEvent(Int32) | Writes an event by using the provided event identifier. |
|
WriteEvent(Int32, Int32) | Writes an event by using the provided event identifier and 32-bit integer argument. |
|
WriteEvent(Int32, Int64) | Writes an event by using the provided event identifier and 64-bit integer argument. |
|
WriteEvent(Int32, Object[]) | Writes an event by using the provided event identifier and array of arguments. |
|
WriteEvent(Int32, String) | Writes an event by using the provided event identifier and string argument. |
|
WriteEvent(Int32, Int32, Int32) | Writes an event by using the provided event identifier and 32-bit integer arguments. |
|
WriteEvent(Int32, Int64, Int64) | Writes an event by using the provided event identifier and 64-bit arguments. |
|
WriteEvent(Int32, String, Int32) | Writes an event by using the provided event identifier and arguments. |
|
WriteEvent(Int32, String, Int64) | Writes an event by using the provided event identifier and arguments. |
|
WriteEvent(Int32, String, String) | Writes an event by using the provided event identifier and string arguments. |
|
WriteEvent(Int32, Int32, Int32, Int32) | Writes an event by using the provided event identifier and 32-bit integer arguments. |
|
WriteEvent(Int32, Int64, Int64, Int64) | Writes an event by using the provided event identifier and 64-bit arguments. |
|
WriteEvent(Int32, String, Int32, Int32) | Writes an event by using the provided event identifier and arguments. |
|
WriteEvent(Int32, String, String, String) | Writes an event by using the provided event identifier and string arguments. |
The WriteEvent method provides overloads with combinations of string and integer arguments. If none of these combinations match the parameters for the call, the compiler uses the EventSource.WriteEvent(Int32, Object[]) overload, which is considerably slower than the other overloads. See the overload page for details.
You can also create a custom overload by using the WriteEventCore method.