Compartir a través de


ITextDocument.UpdateDirtyState Method

Updates the IsDirty and LastContentModifiedTime properties.

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

Syntax

'Declaration
Sub UpdateDirtyState ( _
    isDirty As Boolean, _
    lastContentModifiedTime As DateTime _
)
void UpdateDirtyState(
    bool isDirty,
    DateTime lastContentModifiedTime
)
void UpdateDirtyState(
    bool isDirty, 
    DateTime lastContentModifiedTime
)
abstract UpdateDirtyState : 
        isDirty:bool * 
        lastContentModifiedTime:DateTime -> unit
function UpdateDirtyState(
    isDirty : boolean, 
    lastContentModifiedTime : DateTime
)

Parameters

  • isDirty
    Type: Boolean

    The new value for IsDirty.

Exceptions

Exception Condition
InvalidOperationException

This object is in the middle of raising events.

ObjectDisposedException

This object has been disposed.

.NET Framework Security

See Also

Reference

ITextDocument Interface

Microsoft.VisualStudio.Text Namespace