Share via


TelemetryService.SetDefaultSession(TelemetrySession) Method

Definition

Allow user to change the Default Session, especially for a cloned session e.g. TelemetryService.SetDefaultSession(new TelemetrySession(clonedSettingsString)

public:
 static void SetDefaultSession(Microsoft::VisualStudio::Telemetry::TelemetrySession ^ telemetrySession);
public static void SetDefaultSession (Microsoft.VisualStudio.Telemetry.TelemetrySession telemetrySession);
static member SetDefaultSession : Microsoft.VisualStudio.Telemetry.TelemetrySession -> unit
Public Shared Sub SetDefaultSession (telemetrySession As TelemetrySession)

Parameters

telemetrySession
TelemetrySession

Exceptions

Thrown when trying to set a default session when a default session is already set.

Applies to