Partilhar via


IExtensibilityDiagnosticsService.GetDiagnosticsEnabledStateAsync Method

Definition

Gets a value indicating whether or not collecting diagnostics is enabled.

public System.Threading.Tasks.Task<bool> GetDiagnosticsEnabledStateAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetDiagnosticsEnabledStateAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function GetDiagnosticsEnabledStateAsync (cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

cancellationToken
CancellationToken

A token to signal cancellation.

Returns

True if diagnostics are enabled, false otherwise.

Applies to