ArcGIS Pro 3.7 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
    Function CanEdit() As Boolean
    bool CanEdit()

    Return Value

    true if the metadata can be edited
    Example
    Item: Check the metadata can be edited: CanEdit
    {
      bool canEdit;
      //Call CanEdit before calling SetXml
      // Note: Needs QueuedTask to run
      canEdit = metadataItemToCheck.CanEdit();
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also