次の方法で共有


__VSRDTSAVEOPTIONS Enum

Definition

Specifies save options for a document in the running document table (RDT).

public enum class __VSRDTSAVEOPTIONS
public enum class __VSRDTSAVEOPTIONS
enum __VSRDTSAVEOPTIONS
public enum __VSRDTSAVEOPTIONS
type __VSRDTSAVEOPTIONS = 
Public Enum __VSRDTSAVEOPTIONS
Inheritance
__VSRDTSAVEOPTIONS

Fields

Name Value Description
RDTSAVEOPT_Reserved -65536

Reserved flag, do not use.

RDTSAVEOPT_SaveIfDirty 0

Saves only if changes have been made. (This is the default.)

RDTSAVEOPT_PromptSave 1

Prompts user to save the document.

RDTSAVEOPT_ForceSave 2

Forces a save even if not dirty.

RDTSAVEOPT_SaveNoChildren 4

Saves only the root of the hierarchy passed in; does not include its children.

RDTSAVEOPT_SaveOnlyChildren 8

Saves only children of the hierarchy passed in; does not include the hierarchy itself.

RDTSAVEOPT_ActivateDocOnErr 16

Activates the editor window of a document if it generates an error on save.

RDTSAVEOPT_DocClose 65536

Indicates that the save is a result of a document close.

Remarks

COM Signature

From vsshell.idl:

enum __VSRDTSAVEOPTIONS {  
    RDTSAVEOPT_SaveIfDirty      = 0x00000000,  
    RDTSAVEOPT_PromptSave       = 0x00000001,  
    RDTSAVEOPT_ForceSave        = 0x00000002,  
    RDTSAVEOPT_SaveNoChildren   = 0x00000004,  
    RDTSAVEOPT_SaveOnlyChildren = 0x00000008,  
    RDTSAVEOPT_ActivateDocOnErr = 0x00000010,  
    RDTSAVEOPT_DocClose         = 0x00010000,  
    RDTSAVEOPT_Reserved         = 0xFFFF0000  
};  
typedef DWORD VSRDTSAVEOPTIONS;  

These flags are passed to the SaveDocuments method. These flags are also specified in the VSSAVETREEITEM structure.

These flags can be combined with the flags from the __FRAMECLOSE enumeration when passed to the SaveDocuments method.

For additional RDTSAVEOPT_ flags, see the __VSRDTSAVEOPTIONS2 enumeration.

Applies to