←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
Java
C++
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.Documents for detailed information.

Example

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

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents Assembly