IVsFileBackup::BackupFile Method (String^)
Visual Studio 2015
Persists the object to a single file
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pszBackupFileName
-
Type:
System::String^
[in] Filename to persist.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsFileBackup::BackupFile(
[in] LPCOLESTR pszBackupFileName
);
IVsFileBackup.BackupFile must not modify any internal state, but should clear the secondary dirty bit. BackupFile must return either STG_S_DATALOSS or STG_E_INVALIDCODEPAGE if there is no way to persist to a file without data loss.
Show: