ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Editing.Attributes Namespace / Inspector Class / TrySetValues Method
A dictionary of (fieldName, value) pairs specifying the attributes to update along with the values to assign.

In This Topic
    TrySetValues Method
    In This Topic
    Sets the value of the attributes specified by the dictionary of (fieldName, value) pairs.
    Syntax
    public bool TrySetValues( 
       Dictionary<string,object> values
    )
    Public Function TrySetValues( _
       ByVal values As Dictionary(Of String,Object) _
    ) As Boolean

    Parameters

    values
    A dictionary of (fieldName, value) pairs specifying the attributes to update along with the values to assign.

    Return Value

    True if all attribute with the specified fieldName are found and values applied. False otherwise.
    Remarks
    This attempts to set all field values. If one fails (because of an invalid field name, or attempting to set a non editable field or other reason), then none of the new field values are applied.
    Requirements

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

    ArcGIS Pro version: 3.8 or higher.
    See Also