Udostępnij za pośrednictwem


DependencyTelemetry Constructors

Definition

Overloads

DependencyTelemetry()

Initializes a new instance of the DependencyTelemetry class.

DependencyTelemetry(String, String, String, String)

Initializes a new instance of the DependencyTelemetry class with the given dependencyTypeName, target, dependencyName, data property values.

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

Initializes a new instance of the DependencyTelemetry class with the given dependencyName, data, startTime, duration and success property values.

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

Initializes a new instance of the DependencyTelemetry class with the given dependencyTypeName, target, dependencyName, data, startTime, duration, resultCode and success and property values.

DependencyTelemetry()

Initializes a new instance of the DependencyTelemetry class.

public DependencyTelemetry ();
Public Sub New ()

Applies to

DependencyTelemetry(String, String, String, String)

Initializes a new instance of the DependencyTelemetry class with the given dependencyTypeName, target, dependencyName, data property values.

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)

Parameters

dependencyTypeName
String
target
String
dependencyName
String
data
String

Applies to

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

Caution

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

Initializes a new instance of the DependencyTelemetry class with the given dependencyName, data, startTime, duration and success property values.

[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)

Parameters

dependencyName
String
data
String
startTime
DateTimeOffset
duration
TimeSpan
success
Boolean
Attributes

Applies to

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

Initializes a new instance of the DependencyTelemetry class with the given dependencyTypeName, target, dependencyName, data, startTime, duration, resultCode and success and property values.

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)

Parameters

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

Applies to