←Select platform

WebClient Property

Summary

The .NET System.Net.WebClient object to use when downloading or uploading data from a remote URL.

Syntax
C#
VB
C++
Java
public WebClient WebClient { get; set; } 
Public Property WebClient() As System.Net.WebClient 
   Get 
   Set 
public:  
   property System::Net::WebClient^ WebClient 
   { 
      System::Net::WebClient^ get() 
      void set(System::Net::WebClient^ value) 
   } 
public IURIConnecter getURIConnecter() 
public void setURIConnecter(IURIConnecter value) 

Property Value

The .NET System.Net.WebClient object to use when downloading or uploading data from a remote URL. Default value is null.

Remarks

LEADTOOLS uses a System.Net.WebClient object when downloading or uploading data from a remote URL. This object contain many options for handling the credentials and proxy settings. If this value is null, LEADTOOLS will create a new System.Net.WebClient object with default options, use it for the operation and then disposes it.

If the operation requires custom settings for the credentials and proxy, or to subscribe to the System.Net.WebClient events for debugging and logging purposes, then the user can create their own object and set it in this property. LEADTOOLS will then use this instance instead of creating a new one. In this mode, the user is responsible for disposing the object when it is no longer used.

Refer to Loading Documents using Leadtools.Document for detailed information.

Example

For an example, refer to DocumentFactory.LoadFromFile or DocumentFactory.LoadFromUri.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.