ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMEditingTemplate Class / Description Property
Example

In This Topic
    Description Property (CIMEditingTemplate)
    In This Topic
    Gets or sets the description.
    Syntax
    Public Property Description As String
    public string Description {get; set;}
    Example
    Create New Table Template using table.CreateTemplate
    // Creates new table templates for the specified standalone table.
    await QueuedTask.Run(() =>
    {
      var table = activeMap.GetStandaloneTablesAsFlattenedList().FirstOrDefault();
      var tableTemplate = table.GetTemplate("Template1");
    
      var definition = tableTemplate.GetDefinition();
      definition.Description = "New definition";
      definition.Name = "New name";
      //Create new table template using this definition
      table.CreateTemplate(definition);
    
      //You can also create a new table template using this extension method. You can use this method the same way you use the layer.CreateTemplate method.
      table.CreateTemplate("New template name", "Template description", tags: ["tag 1", "tag 2"]);
    });
    Update a Table Template
    // Updates the definition of a specified table template by modifying its name and description.
    var table = activeMap.GetStandaloneTablesAsFlattenedList().FirstOrDefault();
    await QueuedTask.Run(() =>
      {
        // get a table template
        var tableTemplate = table.GetTemplate("Template1") ?? throw new Exception("No table template named 'Template1' found");
        // get the definition
        var definition = tableTemplate.GetDefinition();
        definition.Description = "New definition";
        definition.Name = "New name";
        // update the definition
        tableTemplate.SetDefinition(definition);
      });
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also