Parameters
- mapMember
- The map member containing the template.
- name
- The template name to be removed.
Exception | Description |
---|---|
System.ArgumentException | the Template cannot be found in the map member. |
var table = MapView.Active.Map.GetStandaloneTablesAsFlattenedList().FirstOrDefault(); if (table == null) return; QueuedTask.Run(() => { var tableTemplate = table.GetTemplate("Template1"); //Removing a table template table.RemoveTemplate(tableTemplate); //Removing a template by name table.RemoveTemplate("Template2"); });
Target Platforms: Windows 11, Windows 10