ArcGIS Pro 2.7 API Reference Guide
GetCanEditMetadata Method (Layer)

ArcGIS.Desktop.Mapping Namespace > Layer Class : GetCanEditMetadata Method
Gets whether the Layer metadata can be edited or not. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public override bool GetCanEditMetadata()
Public Overrides Function GetCanEditMetadata() As Boolean

Return Value

True if the metadata is editable
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Layer metadata is typically editable unless the Layer is using an underlying data source for metadata or the .aprx is not editable. Sub layer types do not support metadata. They typically have a single source, specified on the parent layer, that controls the metadata.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layer Class
Layer Members