Delegate PDFNet.ConnectionErrorProcDelegate
Error handler for PWS server connection.
A type of callback function (or a delegate in .NET terminology) that is called in case
an error is encountered when connection fails.
The default for this method is e_continue
Assembly: PDFNet.dll
Syntax
public delegate void ConnectionErrorProcDelegate(string message, int error_code, bool switch_to_demo, object user_data);
Parameters
Type |
Name |
Description |
System.String |
message |
The reason for the connection failure.
|
System.Int32 |
error_code |
The error code from the connection failure.
|
System.Boolean |
switch_to_demo |
Is 1 if continuing in the current situation requires a change from
a production key to demo mode (where watermarks will be applied) and 0 otherwise
|
System.Object |
user_data |
Custom data.
|
Constructors
ConnectionErrorProcDelegate(Object, IntPtr)
Declaration
public ConnectionErrorProcDelegate(object A_0, IntPtr A_1)
Parameters
Type |
Name |
Description |
System.Object |
A_0 |
|
System.IntPtr |
A_1 |
|
Methods
BeginInvoke(String, Int32, Boolean, Object, AsyncCallback, Object)
Declaration
public IAsyncResult BeginInvoke(string message, int error_code, bool switch_to_demo, object user_data, AsyncCallback callback, object obj)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Int32 |
error_code |
|
System.Boolean |
switch_to_demo |
|
System.Object |
user_data |
|
System.AsyncCallback |
callback |
|
System.Object |
obj |
|
Returns
Type |
Description |
System.IAsyncResult |
|
EndInvoke(IAsyncResult)
Declaration
public void EndInvoke(IAsyncResult result)
Parameters
Type |
Name |
Description |
System.IAsyncResult |
result |
|
Invoke(String, Int32, Boolean, Object)
Declaration
public void Invoke(string message, int error_code, bool switch_to_demo, object user_data)
Parameters
Type |
Name |
Description |
System.String |
message |
|
System.Int32 |
error_code |
|
System.Boolean |
switch_to_demo |
|
System.Object |
user_data |
|