-api-id | -api-type |
---|---|
M:Windows.Foundation.Diagnostics.LoggingActivity.StartActivity(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions) |
winrt method |
Writes an activity start event with the specified fields, level, and options, and creates a LoggingActivity object.
The name for this event.
The fields for this event. May be null.
The level of detail for this event.
The options for this event. Pass null to use the default options. The options are for advanced scenarios. The default values are designed to work well for most events.
An object that represents the new activity.
If you provide options, LoggingOptions.ActivityId, LoggingOptions.RelatedActivityId, and LoggingOptions.Opcode are ignored because the new LoggingActivity object's options will be set as follows:
The RelatedId is set using this LoggingActivity's Id.
The Id is automatically generated.
The opcode is set to LoggingOptions.Opcode.Start
StartActivity(String), StartActivity(String, LoggingFields), StartActivity(String, LoggingFields, LoggingLevel)