ParameterAttribute.CaptureUnmatchedValues Property

Definition

Gets or sets a value that determines whether the parameter will capture values that don't match any other parameter.

C#
public bool CaptureUnmatchedValues { get; set; }

Property Value

Remarks

CaptureUnmatchedValues allows a component to accept arbitrary additional attributes, and pass them to another component, or some element of the underlying markup.

CaptureUnmatchedValues can be used on at most one parameter per component.

CaptureUnmatchedValues should only be applied to parameters of a type that can be used with AddMultipleAttributes(Int32, IEnumerable<KeyValuePair<String,Object>>) such as Dictionary<TKey,TValue>.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0