This document is archived and information here might be outdated.  Recommended version.


IField.CheckValue Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IField.CheckValue Method

Indicates if the value is valid given the field definition.

[Visual Basic .NET]
Public Function CheckValue ( _
    ByVal Value As Object _
) As Boolean
[C#]
public bool CheckValue (
    object Value
);
[C++]
HRESULT CheckValue(
  VARIANT Value,
  VARIANT_BOOL* isValidValue
);
[C++]

Parameters Value [in] Value is a parameter of type VARIANT isValidValue [out, retval] isValidValue is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

CheckValue tests whether the specified value is valid for the current field, based upon the field type.  For example, CheckValue will verify if the supplied value corresponds to field type of Small Integer or if the value corresponds to a string value.

The value is not checked against any existing domain.

See Also

IField Interface