ArcGIS Pro 2.8 API Reference Guide
CreateTemplate(Layer,CIMEditingTemplate) Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class > CreateTemplate Method : CreateTemplate(Layer,CIMEditingTemplate) Method
the layer the new template is to be added to.
the template definition.
Creates a new template using the specified template definition. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public static EditingTemplate CreateTemplate( 
   Layer layer,
   CIMEditingTemplate templateDef
)
Public Overloads Shared Function CreateTemplate( _
   ByVal layer As Layer, _
   ByVal templateDef As CIMEditingTemplate _
) As EditingTemplate

Parameters

layer
the layer the new template is to be added to.
templateDef
the template definition.

Return Value

the newly created template. Null if it cannot be created.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members
Overload List