ArcGIS Pro 2.6 API Reference Guide
GetTemplate Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class : GetTemplate Method
the layer containing the template.
the name of the template to be retrieved.
Retrieves a template by name for a layer.
Syntax
public static EditingTemplate GetTemplate( 
   Layer layer,
   string name
)
Public Shared Function GetTemplate( _
   ByVal layer As Layer, _
   ByVal name As String _
) As EditingTemplate

Parameters

layer
the layer containing the template.
name
the name of the template to be retrieved.

Return Value

the template. Null if the template doesn't exist on the layer.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MappingExtensions Class
MappingExtensions Members