IExtensibilityDiagnosticsService.GetDiagnosticsEnabledStateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.