DeniedValuesAttribute(Object[]) Constructor

Definition

Initializes a new instance of the DeniedValuesAttribute class.

C#
public DeniedValuesAttribute(params object?[] values);

Parameters

values
Object[]

A list of values that the validated value should not be equal to.

Applies to

Product Versions
.NET 8, 9, 10