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: 1.3.0.0 (1.3.0.0)
Syntax
IVssAsyncResult BeginPreRestore(
	AsyncCallback userCallback,
	Object state
)

Parameters

userCallback
Type: SystemAsyncCallback
An optional asynchronous callback, to be called when the read is complete.
state
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.
Remarks

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