ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / CanEdit Method
Example Version

CanEdit Method (IMetadata)
Indicates if metadata is editable for the item.
Syntax
bool CanEdit()

Return Value

true if the metadata can be edited
Example
Item: Check the metadata can be edited: CanEdit
bool canEdit1;
//Call CanEdit before calling SetXml
await QueuedTask.Run(() => canEdit1 = metadataItemToCheck.CanEdit());
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also