Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ActivitySource Constructors

Definition

Namespace:
System.Diagnostics
Assembly:
System.Diagnostics.DiagnosticSource.dll
Package:
System.Diagnostics.DiagnosticSource v11.0.0-preview.5.26302.115

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
ActivitySource(ActivitySourceOptions)

Initializes a new instance of ActivitySource using the ActivitySourceOptions.

ActivitySource(String)

Initializes a new instance of ActivitySource with the specified input name.

ActivitySource(String, String)

Constructs an activity source object with the specified name.

ActivitySource(String, String, IEnumerable<KeyValuePair<String,Object>>)

Initializes a new instance of ActivitySource with the specified input name.

ActivitySource(ActivitySourceOptions)

Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs

Initializes a new instance of ActivitySource using the ActivitySourceOptions.

public:
 ActivitySource(System::Diagnostics::ActivitySourceOptions ^ options);
public ActivitySource(System.Diagnostics.ActivitySourceOptions options);
new System.Diagnostics.ActivitySource : System.Diagnostics.ActivitySourceOptions -> System.Diagnostics.ActivitySource
Public Sub New (options As ActivitySourceOptions)

Parameters

options
ActivitySourceOptions

The ActivitySourceOptions object to use for initializing the ActivitySource object.

Applies to

ActivitySource(String)

Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs

Initializes a new instance of ActivitySource with the specified input name.

public:
 ActivitySource(System::String ^ name);
public ActivitySource(string name);
new System.Diagnostics.ActivitySource : string -> System.Diagnostics.ActivitySource
Public Sub New (name As String)

Parameters

name
String

The name of the ActivitySource object

Applies to

ActivitySource(String, String)

Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs

Constructs an activity source object with the specified name.

public ActivitySource(string name, string? version = "");
new System.Diagnostics.ActivitySource : string * string -> System.Diagnostics.ActivitySource
Public Sub New (name As String, Optional version As String = "")

Parameters

name
String

The name of the activity source object.

version
String

The version of the component publishing the tracing info.

Applies to

ActivitySource(String, String, IEnumerable<KeyValuePair<String,Object>>)

Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs
Source:
ActivitySource.cs

Initializes a new instance of ActivitySource with the specified input name.

public ActivitySource(string name, string? version = "", System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? tags = default);
new System.Diagnostics.ActivitySource : string * string * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> System.Diagnostics.ActivitySource
Public Sub New (name As String, Optional version As String = "", Optional tags As IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing)

Parameters

name
String

The name of the ActivitySource object.

version
String

The version of the component publishing the tracing info.

tags
IEnumerable<KeyValuePair<String,Object>>

The optional ActivitySource tags.

Applies to


Feedback

Was this page helpful?