ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.DDL Namespace / DomainDescription Class / MergePolicy Property
Example

In This Topic
    MergePolicy Property (DomainDescription)
    In This Topic
    Syntax
    public MergePolicy MergePolicy {get; set;}
    Public Property MergePolicy As MergePolicy
    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();
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also