Share via


LoggingOptions.RelatedActivityId Property

Definition

Gets or sets a value that uniquely identifies the parent activity to which this activity is related.

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

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

Property Value

Guid

Platform::Guid

winrt::guid

A value that uniquely identifies the parent activity to which this activity is related.

Remarks

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

Applies to

See also