ArcObjects Library Reference  (GeoDatabase)    

IField.CheckValue Method

Indicates if the value is valid given the field definition.

[Visual Basic 6.0]
Function CheckValue(
    ByVal Value As Variant _
) As Boolean
[Visual Basic .NET]
Public Function CheckValue ( _
    ByVal Value As Object _
) As Boolean
[C#]
public bool CheckValue (
    object Value
);
[Java]
public Boolean checkValue (
    Object Value
)
throws
    IOException,
    AutomationException
[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

Example

CheckValue Example

 


Feedback Send feedback on this page