IFeatureManager.IsEnabledAsync 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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應