Click or drag to resize

IVssBackupComponentsBeginPreRestore Method

The BeginPreRestore(AsyncCallback, Object) method will asynchronously cause VSS to generate a PreRestore event, signaling writers to prepare for a coming restore operation.

Namespace:  Alphaleonis.Win32.Vss
Assembly:  AlphaVSS.Common (in AlphaVSS.Common.dll) Version: (
IVssAsyncResult BeginPreRestore(
	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.

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

See Also