HeaderPropagationEntry.ValueFilter Property
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.
Gets or sets a filter delegate that can be used to transform the header value.
public:
property Func<Microsoft::AspNetCore::HeaderPropagation::HeaderPropagationContext, Microsoft::Extensions::Primitives::StringValues> ^ ValueFilter { Func<Microsoft::AspNetCore::HeaderPropagation::HeaderPropagationContext, Microsoft::Extensions::Primitives::StringValues> ^ get(); };
public Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext,Microsoft.Extensions.Primitives.StringValues> ValueFilter { get; }
public Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext,Microsoft.Extensions.Primitives.StringValues>? ValueFilter { get; }
member this.ValueFilter : Func<Microsoft.AspNetCore.HeaderPropagation.HeaderPropagationContext, Microsoft.Extensions.Primitives.StringValues>
Public ReadOnly Property ValueFilter As Func(Of HeaderPropagationContext, StringValues)
Property Value
Remarks
When present, the delegate will be evaluated once per request to provide the transformed header value. The delegate will be called regardless of whether a header with the name corresponding to InboundHeaderName is present in the request. If the result of evaluating ValueFilter is null or empty, it will not be added to the propagated values.
Applies to
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