ArcGIS Pro 3.0 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, Windows 8.1

    See Also