This document is archived and information here might be outdated.  Recommended version.


IDocumentDirty2.SetClean Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDocumentDirty2 Interface > IDocumentDirty2.SetClean Method
ArcGIS Developer Help

IDocumentDirty2.SetClean Method

Resets the dirty flag on the document.

[Visual Basic .NET]
Public Sub SetClean ( _
)
[C#]
public void SetClean (
);

Product Availability

Available with ArcGIS Desktop.

Remarks

If the document's dirty flag is set to True, then you will be prompted to save the document when the document is closed or when the ArcMap application is shut down. If you don't want to be prompted to save the document when you close the document or when the ArcMap application is shutdown, then you can use the SetClean method to set the document's dirty flag to False.

The SetDirty method on IDocumentDirty does the opposite of this.

See Also

IDocumentDirty2 Interface