Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > LoadDocumentOptions Class : WebClient Property |
public WebClient WebClient {get; set;}
'Declaration
Public Property WebClient As WebClient
'Usage
Dim instance As LoadDocumentOptions Dim value As WebClient instance.WebClient = value value = instance.WebClient
public IURIConnecter getURIConnecter() public void setURIConnecter(IURIConnecter value)
public: property WebClient^ WebClient { WebClient^ get(); void set ( WebClient^ value); }
LEADTOOLS uses a 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 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 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.
For an example, refer to DocumentFactory.LoadFromFile or DocumentFactory.LoadFromUri.