The VssSnapshotContext enumeration enables a requester using SetContext(VssSnapshotContext) to specify how a shadow copy is to be created, queried, or deleted and the degree of writer involvement. IVssBackupComponents::SetContext" method) may be modified by a bit mask that contains a valid combination of VssVolumeSnapshotAttributes and VssSnapshotContext enumeration values.
public enum VssSnapshotContext : uint
All types of currently live shadow copies are available for administrative operations, such as shadow copy queries (see the Query method in IVssBackupComponents). All is a valid context for all VSS interfaces except IVssBackupComponents::StartSnapshotSet and IVssBackupComponents::DoSnapshotSet.
Specifies a persistent and non-auto-release shadow copy with writer involvement. This context is designed to be used when writers are needed to ensure that files are in a well-defined state prior to shadow copy.
Automated file rollback mechanisms of system volumes and shadow copies to be used in data mining or restore operations might run under this context. This context is similar to VSS_CTX_BACKUP but allows a requester more control over the persistence of the shadow copy.
The standard backup context. Specifies an auto-release, non persistent shadow copy in which writers are involved in the creation.
Specifies a read-only, client-accessible shadow copy supporting Shadow Copies for Shared Folders and created without writer involvement. Only the system provider (the default provider available on the system) can create this type of shadow copy.
Most requesters will want to use the NasRollback context for persistent, non-auto-release shadow copies without writer involvement.
Specifies a read-only, client-accessible shadow copy supporting Shadow Copies for Shared Folders and created with writer involvement. Only the system provider (the default provider available on the system) can create this type of shadow copy.
Most requesters will want to use the AppRollback context for persistent, non-auto-release shadow copies with writer involvement.
Windows Server 2003 and Windows XP: This context is not supported by Windows Server 2003 and Windows XP.
Specifies a non persistent and auto-release shadow copy created without writer involvement.
Specifies a persistent and non-auto-release shadow copy without writer involvement. This context should be used when there is no need for writer involvement to ensure that files are in a consistent state at the time of the shadow copy.
Lightweight automated file rollback mechanisms or persistent shadow copies of file shares or data volumes that are not expected to contain any system-related files or databases might run under this context. For example, a requester could use this context for creating a shadow copy of a NAS volume hosting documents and simple user shares. Those types of data do not need writer involvement to create a consistent shadow copy.