LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
IsAsyncBusy Property
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class : IsAsyncBusy Property



Gets a value that determines whether this RasterCodecs object is currently busy with an asynchronous operation on a URL.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property IsAsyncBusy As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim value As Boolean
 
value = instance.IsAsyncBusy
C# 
public bool IsAsyncBusy {get;}
C++/CLI 
public:
property bool IsAsyncBusy {
   bool get();
}

Property Value

true if this RasterCodecs object is currently busy with an asynchronous operation on a URL, otherwise; false.

Example

For an example, refer to CancelAsync.

Remarks

The RasterCodecs object supports getting information and loading image files asnchronously through the use of the RasterCodecs.GetInformationAsync and RasterCodecs.LoadAsync methods.

You can call one asyncronous operation per RasterCodecs object at a time. To check if the RasterCodecs object is busy with a previous asynchronous operation, use IsAsyncBusy property. This is the equivalant of the WebClient.IsBusy property of AsyncWebClient.

You can also use the CancelAsync method to cancel any current asynchronous operation in this RasterCodecs object. This is the equivalant of calling WebClient.CancelAsync on AsyncWebClient.

Note:UseAsync, AsyncWebClient, IsAsyncBusy, and CancelAsync are only applicable when the RasterCodecs.GetInformationAsync or RasterCodecs.LoadAsync was with the versions that take a System.Uri parameter. The versions thet take a System.String or a System.IO.Stream does not use a System.Net.WebClient object internally. If you want to check the progress or cancel the operation then use the LoadImage event as normal.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also