Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
__VSRDTSAVEOPTIONS Enumeration
Collapse the table of content
Expand the table of content

__VSRDTSAVEOPTIONS Enumeration

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

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

public enum __VSRDTSAVEOPTIONS
public enum __VSRDTSAVEOPTIONS
public enum __VSRDTSAVEOPTIONS

 Member nameDescription
RDTSAVEOPT_ActivateDocOnErrActivates the editor window of a document if it generates an error on save. 
RDTSAVEOPT_DocCloseIndicates that the save is a result of a document close. 
RDTSAVEOPT_ForceSaveForces a save even if not dirty. 
RDTSAVEOPT_PromptSavePrompts user to save the document. 
RDTSAVEOPT_ReservedReserved flag, do not use. 
RDTSAVEOPT_SaveIfDirtySaves only if changes have been made. (This is the default.)  
RDTSAVEOPT_SaveNoChildrenSaves only the root of the hierarchy passed in; does not include its children. 
RDTSAVEOPT_SaveOnlyChildrenSaves only children of the hierarchy passed in; does not include the hierarchy itself. 

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.

Community Additions

ADD
Show:
© 2015 Microsoft