Dela via


tagVSQuerySaveResultFlags Enumeration

Specifies results of a QuerySave operation.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration tagVSQuerySaveResultFlags
[FlagsAttribute]
public enum tagVSQuerySaveResultFlags
[FlagsAttribute]
public enum class tagVSQuerySaveResultFlags
[<FlagsAttribute>]
type tagVSQuerySaveResultFlags
public enum tagVSQuerySaveResultFlags

Members

Member name Description
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).

The editor may need to terminate the initial operation that caused the edit it cannot reload the 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

Remarks

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.

COM Signature

From IVsQueryEditQuerySave90.idl:

enum tagVSQuerySaveResultFlags
{
    QSR_DefaultFlag     = 0x00000000,
    QSR_Reloaded        = 0x00000001,
    QSR_Changed         = 0x00000002,
};
typedef DWORD VSQuerySaveResultFlags;

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace