Click or drag to resize

IVssBackupComponentsBeginGatherWriterStatus Method

The BeginGatherWriterStatus(AsyncCallback, Object) method asynchronously prompts each writer to send a status message.

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

The caller of this method should also call FreeWriterStatus after receiving the status of each writer.

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

See Also