Class HTML2PDF.Proxy
Proxy settings to be used when loading content from web pages.
Inheritance
System.Object
HTML2PDF.Proxy
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class 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(Boolean)
Declaration
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | A_0 |
Finalize()
Declaration
protected void Finalize()
SetHost(String)
Set the proxy host to use.
Declaration
public void SetHost(string host)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.String | password | The password to use, e.g. "bart". |
SetPort(Int32)
Set the port number to use
Declaration
public void SetPort(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | A valid port number, e.g. 3128. |
SetType(HTML2PDF.Proxy.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 |
---|---|---|
System.String | username | The login name, e.g. "elbarto". |
Implements
System.IDisposable