IVsFileBackup.BackupFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Persists the object to a single file
public:
int BackupFile(System::String ^ pszBackupFileName);
public:
int BackupFile(Platform::String ^ pszBackupFileName);
int BackupFile(std::wstring const & pszBackupFileName);
public int BackupFile (string pszBackupFileName);
abstract member BackupFile : string -> int
Public Function BackupFile (pszBackupFileName As String) As Integer
Parameters
- pszBackupFileName
- String
[in] Filename to persist.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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.