ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Layer Class / GetMetadata Method
Version

GetMetadata Method (Layer)
Gets the Layer metadata. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public override string GetMetadata()

Return Value

The xml formatted metadata
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
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 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also