ArcGIS Pro 3.2 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 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
    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