ArcGIS Pro 2.6 API Reference Guide
GetTemplates Method (MappingExtensions)

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class : GetTemplates Method
the layer to retrieve templates from.
Retrieves all templates for a layer.
Syntax
public static IEnumerable<EditingTemplate> GetTemplates( 
   Layer layer
)
Public Shared Function GetTemplates( _
   ByVal layer As Layer _
) As IEnumerable(Of EditingTemplate)

Parameters

layer
the layer to retrieve templates from.

Return Value

An enumeration of templates.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MappingExtensions Class
MappingExtensions Members