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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET