←Select platform

IsAsyncBusy Property

Summary

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

Syntax
C#
VB
C++
Java
public bool IsAsyncBusy { get; } 
Public ReadOnly Property IsAsyncBusy As Boolean 
public boolean isAsyncBusy(Object operation) 
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

NOTE: This topic is part of RasterCodecs Async support using the .NET System.ComponentMode.AsyncOperation model. For .NET async/await support this type/member is not used. Instead, refer to RasterCodecs Async Operations.

The RasterCodecs object supports getting information, loading and saving image files asynchronously through the use of the GetInformationAsync, LoadAsync, LoadSvgAsync and SaveAsync methods. These methods will use an internal WebClient object to perform their operations and this object will be created automatically on the first call to these methods and can be accessed through the AsyncWebClient property.

If it is desired to create the WebClient object manually (for example, to subscribe to any of its event or set the credentials prior to invoking any read operations), you can call UseAsync to create the object, change its behavior and then call GetInformationAsync, LoadAsync, LoadSvgAsync or SaveAsync.

Note: UseAsync, AsyncWebClient, IsAsyncBusy, and CancelAsync are only applicable when the GetInformationAsync, LoadAsync, LoadSvgAsync or SaveAsync was with the versions that take a Uri parameter. The versions that take a String or a Stream do not use a 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

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly