Share via


IFeatureManager.IsEnabledAsync Method

Definition

Overloads

IsEnabledAsync(String)

Checks whether a given feature is enabled.

IsEnabledAsync<TContext>(String, TContext)

Checks whether a given feature is enabled.

IsEnabledAsync(String)

Checks whether a given feature is enabled.

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

Parameters

feature
String

The name of the feature to check.

Returns

True if the feature is enabled, otherwise false.

Applies to

IsEnabledAsync<TContext>(String, TContext)

Checks whether a given feature is enabled.

public System.Threading.Tasks.Task<bool> IsEnabledAsync<TContext> (string feature, TContext context);
abstract member IsEnabledAsync : string * 'Context -> System.Threading.Tasks.Task<bool>
Public Function IsEnabledAsync(Of TContext) (feature As String, context As TContext) As Task(Of Boolean)

Type Parameters

TContext

Parameters

feature
String

The name of the feature to check.

context
TContext

A context providing information that can be used to evaluate whether a feature should be on or off.

Returns

True if the feature is enabled, otherwise false.

Applies to