Udostępnij za pośrednictwem


DependencyTelemetry.TryGetOperationDetail(String, Object) Method

Definition

In specific collectors, objects are added to the dependency telemetry which may be useful to enhance DependencyTelemetry telemetry by ITelemetryInitializer implementations. Objects retrieved here are not automatically serialized and sent to the backend.

public bool TryGetOperationDetail (string key, out object detail);
member this.TryGetOperationDetail : string * obj -> bool
Public Function TryGetOperationDetail (key As String, ByRef detail As Object) As Boolean

Parameters

key
String

The key of the value to get.

detail
Object

When this method returns, contains the object that has the specified key, or the default value of the type if the operation failed.

Returns

true if the key was found; otherwise, false.

Applies to