ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core Namespace / Project Class / SetDirty Method
(optional) The project's new dirty state. true indicates changes have not been saved; false indicates no changes have been made. (default value = true)

In This Topic
    SetDirty Method
    In This Topic
    Sets the dirty state of the project
    Syntax
    public void SetDirty( 
       bool dirty
    )
    Public Sub SetDirty( _
       Optional ByVal dirty As Boolean _
    ) 

    Parameters

    dirty
    (optional) The project's new dirty state. true indicates changes have not been saved; false indicates no changes have been made. (default value = true)
    Remarks

    If the project's dirty state is set to true, you will be prompted to save changes when another project is opened or when you exit the ArcGIS Pro application.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also