Share via


DocData.IsDirty Method

Verifies whether the document has changed since the most recent save operation.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Public Function IsDirty ( _
    <OutAttribute> ByRef dirty As Integer _
) As Integer
public int IsDirty(
    out int dirty
)
public:
virtual int IsDirty(
    [OutAttribute] int% dirty
) sealed
abstract IsDirty : 
        dirty:int byref -> int  
override IsDirty : 
        dirty:int byref -> int
public final function IsDirty(
    dirty : int
) : int

Parameters

  • dirty
    Type: System.Int32%

    true to indicate that the document changed; otherwise, false.

Return Value

Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.

Implements

IPersistFileFormat.IsDirty(Int32%)

Remarks

This method implements the IVsPersistDocData2 interface.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace