ActivitySource(String, String) 构造函数

定义

使用指定的 name 构造活动源对象。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 = "")

参数

name
String

活动源对象的名称。The name of the activity source object.

version
String

发布跟踪信息的组件版本。The version of the component publishing the tracing info.

适用于