다음을 통해 공유


DocData.IsDocDataDirty 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 Overridable Function IsDocDataDirty ( _
    <OutAttribute> ByRef isDirty As Integer _
) As Integer
public virtual int IsDocDataDirty(
    out int isDirty
)
public:
virtual int IsDocDataDirty(
    [OutAttribute] int% isDirty
)
abstract IsDocDataDirty : 
        isDirty:int byref -> int  
override IsDocDataDirty : 
        isDirty:int byref -> int
public function IsDocDataDirty(
    isDirty : int
) : int

Parameters

  • isDirty
    Type: System.Int32%

    0 if the document did not change; otherwise, 1.

Return Value

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

Implements

IVsPersistDocData2.IsDocDataDirty(Int32%)
IVsPersistDocData.IsDocDataDirty(Int32%)

Remarks

This method implements the IVsPersistDocData2 interface.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace