你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DependencyTelemetry 构造函数

定义

重载

DependencyTelemetry()

初始化 DependencyTelemetry 类的新实例。

DependencyTelemetry(String, String, String, String)

使用给定的 DependencyTelemetry 、 、 targetdependencyNamedata 属性值初始化 类的新实例。dependencyTypeName

DependencyTelemetry(String, String, DateTimeOffset, TimeSpan, Boolean)
已过时.

使用给定的 DependencyTelemetry 、、 durationdatastartTimesuccess 属性值初始化 类的新实例。dependencyName

DependencyTelemetry(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

使用给定的 DependencyTelemetry 、、 dataresultCodetargetdependencyNamestartTimedurationsuccess 属性值初始化 类的新实例。dependencyTypeName

DependencyTelemetry()

初始化 DependencyTelemetry 类的新实例。

public DependencyTelemetry ();
Public Sub New ()

适用于

DependencyTelemetry(String, String, String, String)

使用给定的 DependencyTelemetry 、 、 targetdependencyNamedata 属性值初始化 类的新实例。dependencyTypeName

public DependencyTelemetry (string dependencyTypeName, string target, string dependencyName, string data);
new Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry : string * string * string * string -> Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry
Public Sub New (dependencyTypeName As String, target As String, dependencyName As String, data As String)

参数

dependencyTypeName
String
target
String
dependencyName
String
data
String

适用于

DependencyTelemetry(String, String, DateTimeOffset, TimeSpan, Boolean)

注意

Use other constructors which allows to define dependency call with all the properties.

使用给定的 DependencyTelemetry 、、 durationdatastartTimesuccess 属性值初始化 类的新实例。dependencyName

[System.Obsolete("Use other constructors which allows to define dependency call with all the properties.")]
public DependencyTelemetry (string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, bool success);
[<System.Obsolete("Use other constructors which allows to define dependency call with all the properties.")>]
new Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry : string * string * DateTimeOffset * TimeSpan * bool -> Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry
Public Sub New (dependencyName As String, data As String, startTime As DateTimeOffset, duration As TimeSpan, success As Boolean)

参数

dependencyName
String
data
String
startTime
DateTimeOffset
duration
TimeSpan
success
Boolean
属性

适用于

DependencyTelemetry(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean)

使用给定的 DependencyTelemetry 、、 dataresultCodetargetdependencyNamestartTimedurationsuccess 属性值初始化 类的新实例。dependencyTypeName

public DependencyTelemetry (string dependencyTypeName, string target, string dependencyName, string data, DateTimeOffset startTime, TimeSpan duration, string resultCode, bool success);
new Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry : string * string * string * string * DateTimeOffset * TimeSpan * string * bool -> Microsoft.ApplicationInsights.DataContracts.DependencyTelemetry
Public Sub New (dependencyTypeName As String, target As String, dependencyName As String, data As String, startTime As DateTimeOffset, duration As TimeSpan, resultCode As String, success As Boolean)

参数

dependencyTypeName
String
target
String
dependencyName
String
data
String
startTime
DateTimeOffset
duration
TimeSpan
resultCode
String
success
Boolean

适用于