Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.79 KB

loggingactivity_startactivity_878877052.md

File metadata and controls

43 lines (29 loc) · 1.79 KB
-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

Windows.Foundation.Diagnostics.LoggingActivity.StartActivity

-description

Writes an activity start event with the specified fields, level, and options, and creates a LoggingActivity object.

-parameters

-param startEventName

The name for this event.

-param fields

The fields for this event. May be null.

-param level

The level of detail for this event.

-param options

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.

-returns

An object that represents the new activity.

-remarks

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

-examples

-see-also

StartActivity(String), StartActivity(String, LoggingFields), StartActivity(String, LoggingFields, LoggingLevel)