ArcGIS Pro 2.8 API Reference Guide
RemoveTemplate(Layer,String) Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class > RemoveTemplate Method : RemoveTemplate(Layer,String) Method
the layer containing the template.
the template name to be removed.
Removes a template from a layer.
Syntax
public static void RemoveTemplate( 
   Layer layer,
   string name
)
Public Overloads Shared Sub RemoveTemplate( _
   ByVal layer As Layer, _
   ByVal name As String _
) 

Parameters

layer
the layer containing the template.
name
the template name to be removed.
Exceptions
ExceptionDescription
the Template cannot be found in the layer.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members
Overload List