ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.Attributes Namespace / Inspector Class / Item Property / Item(String) Property
a string value to search for desired attribute field name
Example

In This Topic
    Item(String) Property
    In This Topic
    Returns the current value of attribute. Takes in the attribute field name as the parameter.
    Syntax
    Public Overloads Property Item( _
       ByVal fieldName As String _
    ) As Object
    public object Item( 
       string fieldName
    ) {get; set;}

    Parameters

    fieldName
    a string value to search for desired attribute field name

    Property Value

    Current value of the attribute whose field name was passed.
    Example
    Load map selection into Inspector and Change Attributes
    // Updates the "Description" attribute of the selected features in the specified selection set.
    {
      // get the first layer and its corresponding selected feature OIDs
      var firstSelectionSet = selectedFeatures.ToDictionary().First();
      // create an instance of the inspector class
      var inspector = new Inspector();
      // load the selected features into the inspector using a list of object IDs
      await inspector.LoadAsync(firstSelectionSet.Key, firstSelectionSet.Value);
      // assign the new attribute value to the field "Description"
      // if more than one features are loaded, the change applies to all features
      inspector["Description"] = "The new value.";
      // apply the changes as an edit operation 
      await inspector.ApplyAsync();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also