ArcGIS Pro 2.8 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.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members