ArcGIS Pro 2.6 API Reference Guide
CanEdit Method (Item)
Example 

ArcGIS.Desktop.Core Namespace > Item Class : CanEdit Method
Indicates if metadata is editable for the item.
Syntax
public bool CanEdit()
Public Function CanEdit() As Boolean

Return Value

true if the metadata can be edited
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
bool canEdit1;
//Call CanEdit before calling SetXml
await QueuedTask.Run(() => canEdit1 = metadataItemToCheck.CanEdit());
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Item Class
Item Members