Partager via


IVsFileBackup.BackupFile(String) Method

Definition

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.

Applies to