Share via


LoggingOptions.ActivityId Property

Definition

Gets or sets the unique identifier associated with an activity.

public:
 property Platform::Guid ActivityId { Platform::Guid get(); void set(Platform::Guid value); };
winrt::guid ActivityId();

void ActivityId(winrt::guid value);
public Guid ActivityId { get; set; }
var guid = loggingOptions.activityId;
loggingOptions.activityId = guid;
Public Property ActivityId As Guid

Property Value

Guid

Platform::Guid

winrt::guid

The activity unique identifier.

Remarks

This value corresponds to the Event Tracing for Windows (ETW) definition of an activity id. You will normally use the LoggingActivity class to automatically manage this value instead of setting it manually.

Applies to