Compartilhar via


TelemetryActivity Constructors

Definition

Overloads

TelemetryActivity(String)

Creates the new telemetry activity class.

TelemetryActivity(String, Guid)

Creates a new telemetry activity parented to another activity

TelemetryActivity(String)

Creates the new telemetry activity class.

public:
 TelemetryActivity(System::String ^ eventName);
public TelemetryActivity (string eventName);
new Microsoft.VisualStudio.Telemetry.TelemetryActivity : string -> Microsoft.VisualStudio.Telemetry.TelemetryActivity
Public Sub New (eventName As String)

Parameters

eventName
String

Event name that is unique, not null and not empty.

Applies to

TelemetryActivity(String, Guid)

Creates a new telemetry activity parented to another activity

public:
 TelemetryActivity(System::String ^ eventName, Guid parentCorrelationId);
public TelemetryActivity (string eventName, Guid parentCorrelationId);
new Microsoft.VisualStudio.Telemetry.TelemetryActivity : string * Guid -> Microsoft.VisualStudio.Telemetry.TelemetryActivity
Public Sub New (eventName As String, parentCorrelationId As Guid)

Parameters

eventName
String

Event name that is unique, not null and not empty.

parentCorrelationId
Guid

Correlation Id of the parent event

Applies to