Show / Hide Table of Contents

Method GetDefaultConstructionTool

GetDefaultConstructionTool(long)

Returns the template's construction tool or a determined default.

Declaration
public GeometryConstructionTool? GetDefaultConstructionTool(long layerId)
Parameters
Type Name Description
long layerId

An ID that identifies the layer for which a default construction tool is requested.

Returns
Type Description
GeometryConstructionTool

The default construction tool if one can be determined; otherwise, null.

Remarks

In the absence of a default construction tool for this template, the geometry type of the specified layer is used to determine a default construction tool, provided this layer is loaded and is one of the LayerIds. A null value is expected when:

  • the template is used to create a non-spatial related record
  • the default construction tool is null, and the layer's geometry type is unknown
Exceptions
Type Condition
ArgumentException

The specified layerId is not one of the LayerIds or is not loaded.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.