ITextDocument::UpdateDirtyState Method (Boolean, DateTime)

 

Updates the IsDirty and LastContentModifiedTime properties.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

void UpdateDirtyState(
	bool isDirty,
	DateTime lastContentModifiedTime
)

Parameters

isDirty
Type: System::Boolean

The new value for IsDirty.

lastContentModifiedTime
Type: System::DateTime

The new value for LastContentModifiedTime.

Exception Condition
InvalidOperationException

This object is in the middle of raising events.

ObjectDisposedException

This object has been disposed.

Return to top
Show: