Export (0) Print
Expand All

EnumDataTypeAttribute.IsValid Method

Checks that the value of the data field is valid.

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

public override bool IsValid(
	Object value
)

Parameters

value
Type: System.Object

The data field value to validate.

Return Value

Type: System.Boolean
true if the data field value is valid; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft