TelemetryService.CreateAndGetDefaultSession 方法

定义

重载

CreateAndGetDefaultSession(String)

Create具有指定参数的新默认会话

CreateAndGetDefaultSession(String, String)

Create具有指定参数的新默认会话

CreateAndGetDefaultSession(String, String, String)

Create具有指定参数的新默认会话

CreateAndGetDefaultSession(String)

Create具有指定参数的新默认会话

public static Microsoft.VisualStudio.Telemetry.TelemetrySession CreateAndGetDefaultSession (string collectorApiKey);
static member CreateAndGetDefaultSession : string -> Microsoft.VisualStudio.Telemetry.TelemetrySession
Public Shared Function CreateAndGetDefaultSession (collectorApiKey As String) As TelemetrySession

参数

collectorApiKey
String

收集器++ 终结点 api-ikey

返回

适用于

CreateAndGetDefaultSession(String, String)

Create具有指定参数的新默认会话

public:
 static Microsoft::VisualStudio::Telemetry::TelemetrySession ^ CreateAndGetDefaultSession(System::String ^ appInsightsIKey, System::String ^ asimovIKey);
public static Microsoft.VisualStudio.Telemetry.TelemetrySession CreateAndGetDefaultSession (string appInsightsIKey, string asimovIKey);
static member CreateAndGetDefaultSession : string * string -> Microsoft.VisualStudio.Telemetry.TelemetrySession
Public Shared Function CreateAndGetDefaultSession (appInsightsIKey As String, asimovIKey As String) As TelemetrySession

参数

appInsightsIKey
String
asimovIKey
String

返回

适用于

CreateAndGetDefaultSession(String, String, String)

Create具有指定参数的新默认会话

public static Microsoft.VisualStudio.Telemetry.TelemetrySession CreateAndGetDefaultSession (string appInsightsIKey, string asimovIKey, string collectorApiKey);
static member CreateAndGetDefaultSession : string * string * string -> Microsoft.VisualStudio.Telemetry.TelemetrySession
Public Shared Function CreateAndGetDefaultSession (appInsightsIKey As String, asimovIKey As String, collectorApiKey As String) As TelemetrySession

参数

appInsightsIKey
String
asimovIKey
String
collectorApiKey
String

返回

适用于