Share via


ILoggingTarget.StartActivity Method

Definition

Overloads

StartActivity(String)

Writes an activity start event and creates a LoggingActivity object.

StartActivity(String, LoggingFields)

Writes an activity start event with fields and creates a LoggingActivity object.

StartActivity(String, LoggingFields, LoggingLevel)

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

StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions)

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

StartActivity(String)

Writes an activity start event and creates a LoggingActivity object.

public:
 LoggingActivity ^ StartActivity(Platform::String ^ startEventName);
/// [Windows.Foundation.Metadata.Overload("StartActivity")]
LoggingActivity StartActivity(winrt::hstring const& startEventName);
[Windows.Foundation.Metadata.Overload("StartActivity")]
public LoggingActivity StartActivity(string startEventName);
function startActivity(startEventName)
Public Function StartActivity (startEventName As String) As LoggingActivity

Parameters

startEventName
String

Platform::String

winrt::hstring

The name for this event.

Returns

An object that represents the new activity.

Attributes

See also

Applies to

StartActivity(String, LoggingFields)

Writes an activity start event with fields and creates a LoggingActivity object.

public:
 LoggingActivity ^ StartActivity(Platform::String ^ startEventName, LoggingFields ^ fields);
/// [Windows.Foundation.Metadata.Overload("StartActivityWithFields")]
LoggingActivity StartActivity(winrt::hstring const& startEventName, LoggingFields const& fields);
[Windows.Foundation.Metadata.Overload("StartActivityWithFields")]
public LoggingActivity StartActivity(string startEventName, LoggingFields fields);
function startActivity(startEventName, fields)
Public Function StartActivity (startEventName As String, fields As LoggingFields) As LoggingActivity

Parameters

startEventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event.

Returns

An object that represents the new activity.

Attributes

See also

Applies to

StartActivity(String, LoggingFields, LoggingLevel)

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

public:
 LoggingActivity ^ StartActivity(Platform::String ^ startEventName, LoggingFields ^ fields, LoggingLevel level);
/// [Windows.Foundation.Metadata.Overload("StartActivityWithFieldsAndLevel")]
LoggingActivity StartActivity(winrt::hstring const& startEventName, LoggingFields const& fields, LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("StartActivityWithFieldsAndLevel")]
public LoggingActivity StartActivity(string startEventName, LoggingFields fields, LoggingLevel level);
function startActivity(startEventName, fields, level)
Public Function StartActivity (startEventName As String, fields As LoggingFields, level As LoggingLevel) As LoggingActivity

Parameters

startEventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event. May be **null **.

level
LoggingLevel

The level of detail for this event.

Returns

An object that represents the new activity.

Attributes

See also

Applies to

StartActivity(String, LoggingFields, LoggingLevel, LoggingOptions)

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

public:
 LoggingActivity ^ StartActivity(Platform::String ^ startEventName, LoggingFields ^ fields, LoggingLevel level, LoggingOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("StartActivityWithFieldsAndOptions")]
LoggingActivity StartActivity(winrt::hstring const& startEventName, LoggingFields const& fields, LoggingLevel const& level, LoggingOptions const& options);
[Windows.Foundation.Metadata.Overload("StartActivityWithFieldsAndOptions")]
public LoggingActivity StartActivity(string startEventName, LoggingFields fields, LoggingLevel level, LoggingOptions options);
function startActivity(startEventName, fields, level, options)
Public Function StartActivity (startEventName As String, fields As LoggingFields, level As LoggingLevel, options As LoggingOptions) As LoggingActivity

Parameters

startEventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event. May be null.

level
LoggingLevel

The level of detail for this event.

options
LoggingOptions

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.

Attributes

See also

Applies to