IExtension.IsEnabledAsync Method

Definition

Controls whether the extension is enabled or not. This is useful for extensions that are always registered but only enabled when certain conditions are met. For example, an extension that would want to be run only when its associated command line option is provided by the user.

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

Returns

Applies to