Partager via


IVsRunningDocumentTable3.UpdateDirtyState Method

Updates the status of the dirty state.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

Syntax

'Declaration
Sub UpdateDirtyState ( _
    cookie As UInteger _
)
void UpdateDirtyState(
    uint cookie
)
void UpdateDirtyState(
    [InAttribute] unsigned int cookie
)
abstract UpdateDirtyState : 
        cookie:uint32 -> unit
function UpdateDirtyState(
    cookie : uint
)

Parameters

  • cookie
    Type: UInt32

    [in] The document to check.

Remarks

This method calls IsItemDirty for the document, and raises OnAfterAttributeChange(Ex) if the dirty state has changed. This is preferred to calling NotifyDocumentChangedEx directly as the latter may cause extraneous attribute change notifications to be raised.

.NET Framework Security

See Also

Reference

IVsRunningDocumentTable3 Interface

Microsoft.VisualStudio.Shell.Interop Namespace