LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

IsAsyncBusy Property






Gets a value that determines whether this RasterCodecs object is currently busy with an asynchronous operation on a URL. .NET support Silverlight support
Syntax
public bool IsAsyncBusy {get;}
'Declaration
 
Public ReadOnly Property IsAsyncBusy As Boolean
'Usage
 
Dim instance As RasterCodecs
Dim value As Boolean
 
value = instance.IsAsyncBusy
public bool IsAsyncBusy {get;}
 get_IsAsyncBusy(); 
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.
Remarks

The RasterCodecs object supports getting information and loading image files asynchronously through the use of the GetInformationAsync(String,Boolean,Int32,Object) and LoadAsync(String,LeadRect,Int32,CodecsLoadByteOrder,Int32,Int32,Object) methods.

You can call one asynchronous operation per RasterCodecs object at a time. To determine whether the RasterCodecs object is busy with a previous asynchronous operation, use IsAsyncBusy property. This is the equivalent 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 equivalent of calling WebClient.CancelAsync on AsyncWebClient.

Note:UseAsync, AsyncWebClient, IsAsyncBusy, and CancelAsync are only applicable when the GetInformationAsync(String,Boolean,Int32,Object) or LoadAsync(String,LeadRect,Int32,CodecsLoadByteOrder,Int32,Int32,Object) was with the versions that take a System.Uri parameter. The versions that 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.

Example
For an example, refer to CancelAsync.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.