AllowedValuesAttribute(Object[]) Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe AllowedValuesAttribute.
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())
Paramètres
- values
- Object[]
Liste des valeurs auxquelles la valeur validée doit être égale.