Show / Hide Table of Contents

# Class HTML2PDF.Proxy

Proxy settings to be used when loading content from web pages.

##### Inheritance

object
HTML2PDF.Proxy

##### Implements

IDisposable

##### Inherited Members

object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class HTML2PDF.Proxy : IDisposable

##### Remarks

These Proxy settings will only be used if type is not e_default.

### Constructors

#### Proxy()

Default constructor

##### Declaration

    public Proxy()

### Methods

#### Destroy()

##### Declaration

    public void Destroy()

#### Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

##### Declaration

    public void Dispose()

#### Dispose(bool)

##### Declaration

    protected virtual void Dispose(bool disposing)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | disposing |

#### ~Proxy()

Releases all resources used by the Proxy

##### Declaration

    protected ~Proxy()

#### SetHost(string)

Set the proxy host to use.

##### Declaration

    public void SetHost(string host)

##### Parameters

Type | Name | Description
--- | --- | ---
string | host | String defining the host name, e.g. "myserver" or "www.xxx.yyy.zzz"

#### SetPassword(string)

Set the password to use when logging into the proxy with username

##### Declaration

    public void SetPassword(string password)

##### Parameters

Type | Name | Description
--- | --- | ---
string | password | The password to use, e.g. "bart".

#### SetPort(int)

Set the port number to use

##### Declaration

    public void SetPort(int port)

##### Parameters

Type | Name | Description
--- | --- | ---
int | port | A valid port number, e.g. 3128.

#### SetType(Type)

Set the type of proxy to use.

##### Declaration

    public void SetType(HTML2PDF.Proxy.Type type)

##### Parameters

Type | Name | Description
--- | --- | ---
HTML2PDF.Proxy.Type | type | If e_default, use whatever the html2pdf library decides on. If e_none, explicitly sets that no proxy is to be used. If e_http or e_socks5 then the corresponding proxy protocol is used.

#### SetUsername(string)

Set the username to use when logging into the proxy

##### Declaration

    public void SetUsername(string username)

##### Parameters

Type | Name | Description
--- | --- | ---
string | username | The login name, e.g. "elbarto".

### Implements

IDisposable