Share via


TelemetryService.TrySetDefaultSession(TelemetrySession) Method

Definition

Attempts to set the Default Session, especially for a cloned session e.g. TelemetryService.TrySetDefaultSession(new TelemetrySession(clonedSettingsString)

public static bool TrySetDefaultSession (Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession);
static member TrySetDefaultSession : Microsoft.VisualStudio.Telemetry.TelemetrySession -> bool
Public Shared Function TrySetDefaultSession (telemetrySession As TelemetrySession) As Boolean

Parameters

telemetrySession
TelemetrySession

Returns

true if DefaultSession was successfully set, false if DefaultSession already existed.

Applies to