TelemetryExtensions.ApplyTelemetryContext Method

Namespace: Microsoft.ApplicationInsights.Extensibility
Assembly: Microsoft.ApplicationInsights (in Microsoft.ApplicationInsights.dll)

Usage

'Usage
Dim telemetry As ITelemetry
Dim otherContext As TelemetryContext
Dim returnValue As ITelemetry

returnValue = TelemetryExtensions.ApplyTelemetryContext(telemetry, otherContext)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function ApplyTelemetryContext ( _
    telemetry As ITelemetry, _
    otherContext As TelemetryContext _
) As ITelemetry
[ExtensionAttribute] 
public static ITelemetry ApplyTelemetryContext (
    ITelemetry telemetry,
    TelemetryContext otherContext
)
[ExtensionAttribute] 
public:
static ITelemetry^ ApplyTelemetryContext (
    ITelemetry^ telemetry, 
    TelemetryContext^ otherContext
)
/** @attribute ExtensionAttribute() */ 
public static ITelemetry ApplyTelemetryContext (
    ITelemetry telemetry, 
    TelemetryContext otherContext
)
ExtensionAttribute 
public static function ApplyTelemetryContext (
    telemetry : ITelemetry, 
    otherContext : TelemetryContext
) : ITelemetry

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 8, Windows Server 2012

See Also

Reference

TelemetryExtensions Class
TelemetryExtensions Members
Microsoft.ApplicationInsights.Extensibility Namespace