IVsDeferredSaveProject Interface
Delays permanently saving a project until the user saves it with SaveAll. Creates the effect of keeping the project in memory. The package uses a generated name for the project, and temporary files at a temporary location. Limits the solution to one project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
<InterfaceTypeAttribute()> _
<GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")> _
Public Interface IVsDeferredSaveProject
Dim instance As IVsDeferredSaveProject
[InterfaceTypeAttribute()]
[GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")]
public interface IVsDeferredSaveProject
[InterfaceTypeAttribute()]
[GuidAttribute(L"83B2961F-AC2B-409B-89BD-DCF698E3C402")]
public interface class IVsDeferredSaveProject
public interface IVsDeferredSaveProject
Remarks
To use IVsDeferredSaveProject, you must create directory descritption file (.vsdir). The flags in the file must include VSDIRFLAG_DeferredSaveProject. For more information, see Template Directory Description Files (.vsdir).
When the user saves the project permanently, the user uses File.SaveAll, which presents a file browser to choose the new file name and location for the project file. Once the file name is chosen, the environment calls SaveProjectToLocation. The project must save itself to the specified file name and save all its other contents to the folder containing the specified file name.