你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DependencyTelemetry 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DependencyTelemetry() |
初始化 DependencyTelemetry 类的新实例。 |
DependencyTelemetry(String, String, String, String) |
使用给定的 DependencyTelemetry 、 、 |
DependencyTelemetry(String, String, DateTimeOffset, TimeSpan, Boolean) |
已过时.
使用给定的 DependencyTelemetry 、、 |
DependencyTelemetry(String, String, String, String, DateTimeOffset, TimeSpan, String, Boolean) |
使用给定的 DependencyTelemetry 、、 |
DependencyTelemetry()
DependencyTelemetry(String, String, String, String)
使用给定的 DependencyTelemetry 、 、 target
dependencyName
data
属性值初始化 类的新实例。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 、、 duration
data
startTime
和 success
属性值初始化 类的新实例。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 、、 data
resultCode
target
dependencyName
startTime
duration
和 success
属性值初始化 类的新实例。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