EventLog.WriteEventAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WriteEventAsync(Int32, Single) |
Runs WriteEvent(Int32, Single) asynchronously. |
| WriteEventAsync(Int32, Object[]) |
Runs WriteEvent(Int32, Object[]) asynchronously. |
| WriteEventAsync(Int32, Int32) |
Runs WriteEvent(Int32, Int32) asynchronously. |
| WriteEventAsync(Int32, Int64) |
Runs WriteEvent(Int32, Int64) asynchronously. |
| WriteEventAsync(Int32, String) |
Runs WriteEvent(Int32, String) asynchronously. |
WriteEventAsync(Int32, Single)
Runs WriteEvent(Int32, Single) asynchronously.
public static System.Threading.Tasks.Task<int> WriteEventAsync(int tag, float value);
static member WriteEventAsync : int * single -> System.Threading.Tasks.Task<int>
Parameters
- tag
- Int32
The event type tag code to pass to the write operation.
- value
- Single
The single-precision floating-point payload to pass to the write operation.
Returns
A task containing the return value of WriteEvent(Int32, Single).
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteEventAsync(Int32, Object[])
Runs WriteEvent(Int32, Object[]) asynchronously.
public static System.Threading.Tasks.Task<int> WriteEventAsync(int tag, params Java.Lang.Object[]? list);
static member WriteEventAsync : int * Java.Lang.Object[] -> System.Threading.Tasks.Task<int>
Parameters
- tag
- Int32
The event type tag code to pass to the write operation.
- list
- Object[]
The event data items to pass to the write operation.
Returns
A task containing the return value of WriteEvent(Int32, Object[]).
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteEventAsync(Int32, Int32)
Runs WriteEvent(Int32, Int32) asynchronously.
public static System.Threading.Tasks.Task<int> WriteEventAsync(int tag, int value);
static member WriteEventAsync : int * int -> System.Threading.Tasks.Task<int>
Parameters
- tag
- Int32
The event type tag code to pass to the write operation.
- value
- Int32
The 32-bit integer payload to pass to the write operation.
Returns
A task containing the return value of WriteEvent(Int32, Int32).
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteEventAsync(Int32, Int64)
Runs WriteEvent(Int32, Int64) asynchronously.
public static System.Threading.Tasks.Task<int> WriteEventAsync(int tag, long value);
static member WriteEventAsync : int * int64 -> System.Threading.Tasks.Task<int>
Parameters
- tag
- Int32
The event type tag code to pass to the write operation.
- value
- Int64
The 64-bit integer payload to pass to the write operation.
Returns
A task containing the return value of WriteEvent(Int32, Int64).
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteEventAsync(Int32, String)
Runs WriteEvent(Int32, String) asynchronously.
public static System.Threading.Tasks.Task<int> WriteEventAsync(int tag, string? str);
static member WriteEventAsync : int * string -> System.Threading.Tasks.Task<int>
Parameters
- tag
- Int32
The event type tag code to pass to the write operation.
- str
- String
The string payload to pass to the write operation.
Returns
A task containing the return value of WriteEvent(Int32, String).
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.