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
'宣告
<GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")> _
<InterfaceTypeAttribute()> _
Public Interface IVsDeferredSaveProject
'用途
Dim instance As IVsDeferredSaveProject
[GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")]
[InterfaceTypeAttribute()]
public interface IVsDeferredSaveProject
[GuidAttribute(L"83B2961F-AC2B-409B-89BD-DCF698E3C402")]
[InterfaceTypeAttribute()]
public interface class IVsDeferredSaveProject
[<GuidAttribute("83B2961F-AC2B-409B-89BD-DCF698E3C402")>]
[<InterfaceTypeAttribute()>]
type IVsDeferredSaveProject = interface end
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 (.Vsdir) Files.
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.