ArcGIS Pro 2.9 API Reference Guide
CreateTemplate(MapMember,CIMEditingTemplate) Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class > CreateTemplate Method : CreateTemplate(MapMember,CIMEditingTemplate) Method
the map member 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 Overloads Shared Function CreateTemplate( _
   ByVal member As MapMember, _
   ByVal templateDef As CIMEditingTemplate _
) As EditingTemplate

Parameters

member
the map member 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 11, Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members
Overload List