Share via


Visual Basic Reference

StatusCode Property

See Also    Example    Applies To

Returns a constant specifying the current status of an AsyncRead operation.

Syntax

object**.StatusCode**

The StatusCode property syntax has this part:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Settings

The possible enumerated return values for StatusCode property are:

Constant Setting Description
vbAsyncStatusCodeError 0 An error occurred during the asynchronous download. To find out the error, check the Value property of the AsyncProp object.
vbAsyncStatusCodeFindingResource 1 AsyncRead is finding the resource specified in the Status property that holds the storage being downloaded.
vbAsyncStatusCodeConnecting 2 AsyncRead is connecting to the resource specified in the Status property that holds the storage being downloaded.
vbAsyncStatusCodeRedirecting 3 AsyncRead has been redirected to a different location specified in the Status property.
vbAsyncStatusCodeBeginDownloadData 4 AsyncRead has begun receiving data for the storage specified in the Status property.
vbAsyncStatusCodeDownloadingData 5 AsyncRead has received more data for the storage specified in the Status property.
vbAsyncStatusCodeEndDownloadData 6 AsyncRead has finished receiving data for the storage specified in the Status property.
vbAsyncStatusCodeUsingCachedCopy 10 AsyncRead is retrieving the requested storage from a cached copy since the Status property is empty.
vbAsyncStatusCodeSendingRequest 11 AsyncRead is requesting the storage specified in the Status property
vbAsyncStatusCodeMIMETypeAvailable 13 The MIME type of the requested storage is specified in the Status property.
vbAsyncStatusCodeCacheFileNameAvailable 14 The file name of the local file cache for requested storage is specified in the Status property.
vbAsyncStatusCodeBeginSyncOperation 15 The AsyncRead will operate synchronously.
vbAsyncStatusCodeEndSyncOperation 16 The AsyncRead has completed synchronous operation.

Remarks

The StatusCode constants list contains only the Visual Basic constants. Other constants not specific to Visual Basic or the AsyncRead method can be found by searching the MSDN Library for BINDSTATUS.