DocData.IsDirty Method

Verifies whether the document changed after the most recent save operation.

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

Syntax

'Declaration
Public Function IsDirty ( _
    <OutAttribute> ByRef dirty As Integer _
) As Integer
'Usage
Dim instance As DocData 
Dim dirty As Integer 
Dim returnValue As Integer 

returnValue = instance.IsDirty(dirty)
public int IsDirty(
    out int dirty
)
public:
virtual int IsDirty(
    [OutAttribute] int% dirty
) sealed
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

DocData Members

Microsoft.VisualStudio.Modeling.Shell Namespace