共用方式為


DiagnosticsOptions.IsTelemetryEnabled Property

Definition

Gets or sets value indicating whether the "User-Agent" header containing ApplicationId, client library package name and version, FrameworkDescription and OSDescription should be sent. The default value can be controlled process wide by setting AZURE_TELEMETRY_DISABLED to true, false, 1 or 0.

public bool IsTelemetryEnabled { get; set; }
member this.IsTelemetryEnabled : bool with get, set
Public Property IsTelemetryEnabled As Boolean

Property Value

Applies to