Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > RasterCodecs Class : AsyncWebClient Property |
public WebClient AsyncWebClient {get;}
'Declaration
Public ReadOnly Property AsyncWebClient As WebClient
'Usage
Dim instance As RasterCodecs Dim value As WebClient value = instance.AsyncWebClient
public WebClient AsyncWebClient {get;}
get_AsyncWebClient();
public: property WebClient^ AsyncWebClient { WebClient^ get(); }
The RasterCodecs object supports getting information and loading image files asynchronously through the use of the GetInformationAsync, LoadAsync and LoadSvgAsync 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 or LoadSvgAsync.
Note:UseAsync, AsyncWebClient, IsAsyncBusy, and CancelAsync are only applicable when the GetInformationAsync, LoadAsync or LoadSvgAsync was with the versions that take a Uri parameter. The versions that take a String or a Stream does not use a WebClient object internally. If you want to check the progress or cancel the operation then use the LoadImage event as normal.