ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / CanEdit Method
Example

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

    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
    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