Aracılığıyla paylaş


TelemetryService.TrySetDefaultSession(TelemetrySession) Yöntem

Tanım

Özellikle telemetryService.TrySetDefaultSession(yeni TelemetrySession(clonedSettingsString) gibi kopyalanmış bir oturum için Varsayılan Oturumu ayarlamaya çalışır

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

Parametreler

telemetrySession
TelemetrySession

Döndürülenler

DefaultSession başarıyla ayarlandıysa true, DefaultSession zaten varsa false.

Şunlara uygulanır