แก้ไข

แชร์ผ่าน


AllowedValuesAttribute(Object[]) Constructor

Definition

Initializes a new instance of the AllowedValuesAttribute class.

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())

Parameters

values
Object[]

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

Applies to