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.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.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

#### Dispose()

Releases all resources used by the Proxy

##### Declaration

    public override sealed void Dispose()

#### Dispose(bool)

##### Declaration

    [HandleProcessCorruptedStateExceptions]
    protected virtual void Dispose(bool A_0)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | A_0 |

#### ~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