共用方式為


TelemetryInitializerMiddleware(TelemetryLoggerMiddleware, Boolean) 建構函式

定義

初始化 TelemetryInitializerMiddleware 類別的新執行個體。

public TelemetryInitializerMiddleware (Microsoft.Bot.Builder.TelemetryLoggerMiddleware telemetryLoggerMiddleware, bool logActivityTelemetry = true);
new Microsoft.Bot.Builder.Integration.ApplicationInsights.WebApi.TelemetryInitializerMiddleware : Microsoft.Bot.Builder.TelemetryLoggerMiddleware * bool -> Microsoft.Bot.Builder.Integration.ApplicationInsights.WebApi.TelemetryInitializerMiddleware
Public Sub New (telemetryLoggerMiddleware As TelemetryLoggerMiddleware, Optional logActivityTelemetry As Boolean = true)

參數

telemetryLoggerMiddleware
TelemetryLoggerMiddleware

TelemetryLoggerMiddleware 允許記錄活動事件。

logActivityTelemetry
Boolean

指出是否應該執行 TelemetryLoggerMiddleware 來記錄活動事件。

適用於