ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / IsDirty Property
Example

In This Topic
    IsDirty Property (Project)
    In This Topic
    Gets the dirty state of the project
    Syntax
    Public ReadOnly Property IsDirty As Boolean
    public bool IsDirty {get;}

    Property Value

    True if the project is dirty
    Remarks

    The project's dirty state indicates changes made to the project have not yet been saved. For example, after adding a map to the project, IsDirty will return True and the Save button is enabled.

    Example
    Check if project needs to be saved
    {
      //The project's dirty state indicates changes made to the project have not yet been saved. 
      bool isProjectDirty = Project.Current.IsDirty;
      // Use isProjectDirty;
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also