Freigeben über


IVsFileBackup.IsBackupFileObsolete(Int32) Method

Definition

Sets a backup dirty bit.

public:
 int IsBackupFileObsolete([Runtime::InteropServices::Out] int % pbObsolete);
int IsBackupFileObsolete([Runtime::InteropServices::Out] int & pbObsolete);
public int IsBackupFileObsolete (out int pbObsolete);
abstract member IsBackupFileObsolete : int -> int
Public Function IsBackupFileObsolete (ByRef pbObsolete As Integer) As Integer

Parameters

pbObsolete
Int32

[out] Backup file is dirty

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::IsBackupFileObsolete(  
   [out] BOOL *pbObsolete  
);  

IVsFileBackup needs to keep track of a secondary dirty bit for the backup in order to avoid extra backups for cases where the file is dirty, but the backup matches the current state of the object. This bit should be set when the object is modified and cleared on calls to BackupFile and any Save method. IsBackupFileObsolete returns true if this bit is set, false otherwise.

Applies to