Freigeben über


tagVSQuerySaveResultFlags Enum

Definition

Specifies results of a QuerySave operation.

This enumeration supports a bitwise combination of its member values.

public enum class tagVSQuerySaveResultFlags
public enum class tagVSQuerySaveResultFlags
enum tagVSQuerySaveResultFlags
[System.Flags]
public enum tagVSQuerySaveResultFlags
[<System.Flags>]
type tagVSQuerySaveResultFlags = 
Public Enum tagVSQuerySaveResultFlags
Inheritance
tagVSQuerySaveResultFlags
Attributes

Fields

Name Value Description
QSR_DefaultFlag 0

Default flag.

QSR_Reloaded 1

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

QSR_Changed 2

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).

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;  

Applies to