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

In This Topic
    Description Property (DomainDescription)
    In This Topic
    The description of the ArcGIS.Core.Data.Domain.
    Syntax
    public string Description {get; set;}
    Public Property Description As String
    Example
    Creating a Range domain
    public void CreateRangeDomainSnippet(Geodatabase geodatabase)
    {
      // Create a range description with minimum value = 0 and maximum value = 1000
      RangeDomainDescription rangeDomainDescriptionMinMax = new RangeDomainDescription("RangeDomain_0_1000",
        FieldType.Integer, 0, 1000)
      { Description = "Domain value ranges from 0 to 1000" };
    
      SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase);
    
      // Create  a range domain 
      schemaBuilder.Create(rangeDomainDescriptionMinMax);
      schemaBuilder.Build();
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also