TelemetryService.SetDefaultSession(TelemetrySession) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.