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

In This Topic
    CanEdit Method (IMetadata)
    In This Topic
    Indicates if metadata is editable for the item.
    Syntax
    bool CanEdit()
    Function CanEdit() As Boolean

    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.0 or higher.
    See Also