ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Core.Data Namespace / SplitPolicy Enumeration
Example Example

In This Topic
    SplitPolicy Enumeration
    In This Topic
    Controls the value of the attribute in the output features.
    Syntax
    Members
    MemberDescription
    DefaultValue The attributes of the resulting features take on the default value for the attribute of the given feature class or subtype.
    Duplicate The attributes of the resulting features take on a copy of the original object's attribute value.
    GeometryRatio The attributes of the resulting features are a ratio of the original feature's value.
    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.SplitPolicy

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also