FeatureManagementBuilderExtensions.WithTargeting<T> 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.
Adds an ITargetingContextAccessor to be used for targeting and registers the targeting filter to the feature management system.
public static Microsoft.FeatureManagement.IFeatureManagementBuilder WithTargeting<T> (this Microsoft.FeatureManagement.IFeatureManagementBuilder builder) where T : Microsoft.FeatureManagement.FeatureFilters.ITargetingContextAccessor;
static member WithTargeting : Microsoft.FeatureManagement.IFeatureManagementBuilder -> Microsoft.FeatureManagement.IFeatureManagementBuilder (requires 'T :> Microsoft.FeatureManagement.FeatureFilters.ITargetingContextAccessor)
<Extension()>
Public Function WithTargeting(Of T As ITargetingContextAccessor) (builder As IFeatureManagementBuilder) As IFeatureManagementBuilder
Type Parameters
- T
Parameters
- builder
- IFeatureManagementBuilder
The IFeatureManagementBuilder used to customize feature management functionality.
Returns
A IFeatureManagementBuilder that can be used to customize feature management functionality.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for