ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Editing.Templates Namespace / EditingTemplate Class / ActivateAsync Method
Example

In This Topic
    ActivateAsync Method (EditingTemplate)
    In This Topic
    Activates this EditingTemplate, without changing the current tool.
    Syntax
    public Task ActivateAsync()
    Public Function ActivateAsync() As Task
    Example
    Activate template without changing current tool
    // Get the first template - alternatively get a specific template
    var template = templates.First();
    
    // Activate the template without changing the current tool
    template.ActivateAsync();
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also