AsyncConversion.Exception Property
Gets the exception that occurred during the conversion operation.
public Exception Exception { get; }
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use Exception property of asyncConversion class.class MyClass
{
static void Main()
{
// create an instance of AsyncConverter
AsyncConverter converter = new AsyncConverter();
// Call Convert method to start conversion asynchronously and Get the status of conversion
AsyncConversion asyncConversion = converter.Convert(@"C:\MyDocument.doc", @"C:\MyOutput.pdf");
while (true)
{
if (asyncConversion.Exception != null || asyncConversion.Completed)
{
Console.WriteLine("Conversion completed or exception occured");
break;
}
}
}
}
See Also
AsyncConversionceTe.DynamicPDF.Conversion