Show / Hide Table of Contents

# Delegate PDFViewDownloadDelegate

Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public delegate void PDFViewDownloadDelegate(DownloadedType type, int page_num, int obj_num, string msg, object obj)

##### Parameters

Type | Name | Description
--- | --- | ---
DownloadedType | type | Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.
int | page_num | Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.
int | obj_num | Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.
string | msg | Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.
object | obj | Download event handling. A delegate that is called during download events triggered by calling OpenURLAsync.

### Constructors

#### PDFViewDownloadDelegate(object, IntPtr)

##### Declaration

    public PDFViewDownloadDelegate(object A_0, IntPtr A_1)

##### Parameters

Type | Name | Description
--- | --- | ---
object | A_0 |
IntPtr | A_1 |

### Methods

#### BeginInvoke(DownloadedType, int, int, string, object, AsyncCallback, object)

##### Declaration

    public IAsyncResult BeginInvoke(DownloadedType type, int page_num, int obj_num, string msg, object obj, AsyncCallback callback, object obj)

##### Parameters

Type | Name | Description
--- | --- | ---
DownloadedType | type |
int | page_num |
int | obj_num |
string | msg |
object | obj |
AsyncCallback | callback |
object | obj |

##### Returns

Type | Description
--- | ---
IAsyncResult |

#### EndInvoke(IAsyncResult)

##### Declaration

    public void EndInvoke(IAsyncResult result)

##### Parameters

Type | Name | Description
--- | --- | ---
IAsyncResult | result |

#### Invoke(DownloadedType, int, int, string, object)

##### Declaration

    public void Invoke(DownloadedType type, int page_num, int obj_num, string msg, object obj)

##### Parameters

Type | Name | Description
--- | --- | ---
DownloadedType | type |
int | page_num |
int | obj_num |
string | msg |
object | obj |