Share via


DocData.SetDocDataDirty Method

Sets the document's IsDirty flag.

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 SetDocDataDirty ( _
    isDirty As Integer _
) As Integer
public virtual int SetDocDataDirty(
    int isDirty
)
public:
virtual int SetDocDataDirty(
    int isDirty
)
abstract SetDocDataDirty : 
        isDirty:int -> int  
override SetDocDataDirty : 
        isDirty:int -> int
public function SetDocDataDirty(
    isDirty : int
) : int

Parameters

  • isDirty
    Type: System.Int32

    1 if the document data has changed since the most recent save operation; otherwise, 0. By default, this value is 1.

Return Value

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

Implements

IVsPersistDocData2.SetDocDataDirty(Int32)

Remarks

This method implements the IVsPersistDocData2 interface.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace