IVsFileBackup2::HasChangedSinceLastBackup Method ()

 

Determines whether the file has changed since the last backup.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

bool HasChangedSinceLastBackup()

Return Value

Type: System::Boolean

True if it has changed, otherwise false.

IVsFileBackup2 needs to keep track of whether a backup is required for any particular version of its doc data, to avoid extra backups for cases where the doc data is dirty, but the backup matches the current version of the object. HasChangedSinceLastBackup() returns true if the current version is dirty and it has not been backed up.

Return to top
Show: