ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / MergePolicy Enumeration
Example Example Version

MergePolicy Enumeration
Controls the value of attributes in the new feature.
Syntax
Members
MemberDescription
AreaWeighted The attribute of the resulting feature is the weighted average of the values of the attributes from the original features.
DefaultValue The attribute of the resulting feature takes on the default value for the attribute of the given feature or subtype.
SumValues The attribute of the resulting feature takes on the sum of the values from the original features' attributes.
Example
Creating a CodedValue domain
public void CreateCodedDomainSnippet(Geodatabase geodatabase)
{
    // Create a CodedValueDomain description for water pipes
    CodedValueDomainDescription codedValueDomainDescription = new CodedValueDomainDescription("WaterPipeTypes", FieldType.String,
      new SortedList<object, string> { { "C_1", "Copper" }, { "S_2", "Steel" } })
    {
        SplitPolicy = SplitPolicy.Duplicate,
        MergePolicy = MergePolicy.DefaultValue
    };

    SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase);

    // Create a coded value domain 
    CodedValueDomainToken codedValueDomainToken = schemaBuilder.Create(codedValueDomainDescription);
    schemaBuilder.Build();
}
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         ArcGIS.Core.Data.MergePolicy

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also