Click or drag to resize
IVssBackupComponentsBeginPrepareForBackup Method
The BeginPrepareForBackup(AsyncCallback, Object) method will asynchronously cause VSS to generate a PrepareForBackup event, signaling writers to prepare for an upcoming backup operation. This makes a requester's Backup Components Document available to writers.

Namespace: Alphaleonis.Win32.Vss
Assembly: AlphaVSS.Common (in AlphaVSS.Common.dll) Version: (
IVssAsyncResult BeginPrepareForBackup(
	AsyncCallback userCallback,
	Object state


Type: SystemAsyncCallback
An optional asynchronous callback, to be called when the read is complete.
Type: SystemObject
A user-provided object that distinguishes this particular asynchronous read request from other requests.

Return Value

Type: IVssAsyncResult
An IVssAsyncResult instance that represents this asynchronous operation.

BeginPrepareForBackup(AsyncCallback, Object) generates a PrepareForBackup event, which is handled by each instance of each writer through the CVssWriter::OnPrepareBackup method.

Before PrepareForBackup can be called, SetBackupState(Boolean, Boolean, VssBackupType, Boolean) must be called.

Pass the IVssAsyncResult value returned to the EndPrepareForBackup(IAsyncResult) method to release operating system resources used for this asynchronous operation. EndPrepareForBackup(IAsyncResult) must be called once for every call to BeginPrepareForBackup(AsyncCallback, Object). You can do this either by using the same code that called BeginPrepareForBackup or in a callback passed to BeginPrepareForBackup.

See Also