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)
Syntax
'Declaration
Function HasChangedSinceLastBackup As Boolean
bool HasChangedSinceLastBackup()
bool HasChangedSinceLastBackup()
abstract HasChangedSinceLastBackup : unit -> bool
function HasChangedSinceLastBackup() : boolean
Return Value
Type: Boolean
True if it has changed, otherwise false.
Remarks
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.