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


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

IDocumentDirty.SetDirty Method

Sets the dirty flag on the document.

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

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 the ArcMap application is shut down. Use the SetDirty method to set the document's dirty flag to True.

The SetClean method on IDocumentDirty2 does the opposite of this.

See Also

IDocumentDirty Interface

.NET Samples

Custom feedback tool and font drop-down list tool control