Share via


FeatureManagementBuilderExtensions.WithTargeting<T> Method

Definition

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