This topic has not yet been rated - Rate this topic

ITextDocument.UpdateDirtyState Method

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.

ExceptionCondition
InvalidOperationException

This object is in the middle of raising events.

ObjectDisposedException

This object has been disposed.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.