Udostępnij za pośrednictwem


IEtwEventCorrelator.StartActivity Method

Definition

Overloads

StartActivity()

Creates and sets a new activity ID for the current thread. If the current thread has an existing activity ID, it will be correlated with the new activity ID.

StartActivity(Guid)

Creates and sets a new activity ID for the current thread, optionally correlating the new activity with another activity.

StartActivity()

Creates and sets a new activity ID for the current thread. If the current thread has an existing activity ID, it will be correlated with the new activity ID.

public:
 System::Management::Automation::Tracing::IEtwActivityReverter ^ StartActivity();
public System.Management.Automation.Tracing.IEtwActivityReverter StartActivity ();
abstract member StartActivity : unit -> System.Management.Automation.Tracing.IEtwActivityReverter
Public Function StartActivity () As IEtwActivityReverter

Returns

An object which can be used to revert the activity ID of the current thread once the new activity yields control of the current thread.

Applies to

StartActivity(Guid)

Creates and sets a new activity ID for the current thread, optionally correlating the new activity with another activity.

public:
 System::Management::Automation::Tracing::IEtwActivityReverter ^ StartActivity(Guid relatedActivityId);
public System.Management.Automation.Tracing.IEtwActivityReverter StartActivity (Guid relatedActivityId);
abstract member StartActivity : Guid -> System.Management.Automation.Tracing.IEtwActivityReverter
Public Function StartActivity (relatedActivityId As Guid) As IEtwActivityReverter

Parameters

relatedActivityId
Guid

The ID of an existing activity to be correlated with the new activity or Empty if correlation is not desired.

Returns

An object which can be used to revert the activity ID of the current thread once the new activity yields control of the current thread.

Applies to