tagVSQuerySaveResultFlags Enumeration

 

Specifies results of a QuerySave operation.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

[FlagsAttribute]
public enum tagVSQuerySaveResultFlags

Member nameDescription
QSR_Changed

A file involved in the operation was checked out. A new version was retrieved from the source control database and the file was reloaded in the editor or in the shell (if the file is a project or solution file).

QSR_DefaultFlag

Default flag.

QSR_Reloaded

A file involved in the operation was checked out and a new version was retrieved from the source control database

A source control provider should normally detect file changes only in files opened in editors (so it can reload them if they change during the operation). However, in scenarios like find-in-files, QuerySave may be called with files that are not open in editor, and the caller may be need to determine if the files were changed if they get checked out during the operation. The caller should pass in the QSF_DetectAnyChangedFile flag, and the source control provider should detect accurately if the file has changed and return QSR_Changed if so.

From IVsQueryEditQuerySave90.idl:

enum tagVSQuerySaveResultFlags
{
    QSR_DefaultFlag     = 0x00000000,
    QSR_Reloaded        = 0x00000001,
    QSR_Changed         = 0x00000002,
};
typedef DWORD VSQuerySaveResultFlags;
Return to top
Show: