Compartir a través de


DocData.ReloadDocData Method

Reloads the document.

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 ReloadDocData ( _
    flags As UInteger _
) As Integer
public int ReloadDocData(
    uint flags
)
public:
virtual int ReloadDocData(
    unsigned int flags
) sealed
abstract ReloadDocData : 
        flags:uint32 -> int  
override ReloadDocData : 
        flags:uint32 -> int
public final function ReloadDocData(
    flags : uint
) : int

Parameters

  • flags
    Type: System.UInt32

    Indicates whether to ignore the next file change when the document is reloaded. For a list of flags, see _VSRELOADDOCDATA.

Return Value

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

Implements

IVsPersistDocData2.ReloadDocData(UInt32)
IVsPersistDocData.ReloadDocData(UInt32)

Remarks

Notes about flags parameter: We always discard the undo stack on reload, so the RDD_RemoveUndoStack flag is ignored. We support IVsFileChangeControl, so we should not be called with RDD_IgnoreFileChange.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace