AllowedValuesAttribute(Object[]) Construtor

Definição

Inicializa uma nova instância da AllowedValuesAttribute classe.

public:
 AllowedValuesAttribute(... cli::array <System::Object ^> ^ values);
public AllowedValuesAttribute(params object?[] values);
new System.ComponentModel.DataAnnotations.AllowedValuesAttribute : obj[] -> System.ComponentModel.DataAnnotations.AllowedValuesAttribute
Public Sub New (ParamArray values As Object())

Parâmetros

values
Object[]

Uma lista de valores a que o valor validado deve ser igual.

Aplica-se a