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


IARFeature.Value Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARFeature Interface > IARFeature.Value Property
ArcGIS Developer Help

IARFeature.Value Property

The value of the field.

[Visual Basic .NET]
Public Function get_Value ( _
    ByVal index As Object _
) As Object
[C#]
public object get_Value (
    object index
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Returns the field Value of the field at the specified index in the ARFeature's field collection. There is always at least one field within the field collection. 

Errors Returned

2019 800A07E3: The feature is invalid and has not been initialized

2020 800A07E4: The specified field parameter is invalid

2023 800A07E7: The shape of a feature is not accessible 

2024 800A07E8: Requested field is not visible 

2111 800A083F: The current document does not have permission to query values 

Remarks

Use a zero-based index to access field Value's. For example, to get the Value of the first field in the collection, pass an index of 0, and to get the Value of the last field in the collection, pass an index of (FieldCount - 1).

Getting the Value property will return an error if the currently loaded document was not published with permission to QueryValues. Use the IARControl::HasDocumentPermission method to determine this.

Getting the Value property will return an error for any field's containing an ARFeature's geometry. Use the FieldType property to detemine this.

[C#]

In C# use the get_Value method, as indexed property accessors are not supported.

See Also

IARFeature Interface