TelemetryService.TrySetDefaultSession(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.
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.