你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NoOpTelemetryChannel Class

Definition

A stub of ITelemetryChannel.

public sealed class NoOpTelemetryChannel : IDisposable, Microsoft.ApplicationInsights.Channel.ITelemetryChannel
type NoOpTelemetryChannel = class
    interface ITelemetryChannel
    interface IDisposable
Public NotInheritable Class NoOpTelemetryChannel
Implements IDisposable, ITelemetryChannel
Inheritance
NoOpTelemetryChannel
Implements

Constructors

Name Description
NoOpTelemetryChannel()

Initializes a new instance of the NoOpTelemetryChannel class.

Properties

Name Description
DeveloperMode

Gets or sets a value indicating whether this channel is in developer mode.

EndpointAddress

Gets or sets a value indicating the channel's URI. To this URI the telemetry is expected to be sent.

OnDispose

Gets or sets the callback invoked by the Dispose() method.

OnFlush

Gets or sets the callback invoked by the Flush() method.

OnSend

Gets or sets the callback invoked by the Send(ITelemetry) method.

ThrowError

Gets or sets a value indicating whether to throw an error.

Methods

Name Description
Dispose()

Implements the Dispose() method.

Flush()

Implements the Flush() method.

Send(ITelemetry)

Implements the Send(ITelemetry) method by invoking the OnSend callback.

Applies to