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: BooleanThe new value for IsDirty.
lastContentModifiedTime
Type: DateTimeThe new value for LastContentModifiedTime.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | This object is in the middle of raising events. |
ObjectDisposedException | This object has been disposed. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.