ActivitySource Constructors
Definition
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
ActivitySource(String) | |
ActivitySource(String, String) |
Constructs an activity source object with the specified |
ActivitySource(String, String, IEnumerable<KeyValuePair<String,Object>>) |
ActivitySource(String)
- Source:
- ActivitySource.cs
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
Applies to
ActivitySource(String, String)
- 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
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
- version
- String
- tags
- IEnumerable<KeyValuePair<String,Object>>
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.