Skip to main content

PdfLoadErrorEventArgs Class

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Event arguments for load error event.

public class PdfLoadErrorEventArgs

Inheritance: EventArgs -> PdfLoadErrorEventArgs

Constructors

NameDescription
PdfLoadErrorEventArgsInitializes a new instance of the Avalonia.Controls.PdfLoadErrorEventArgs class.

PdfLoadErrorEventArgs Constructor

Initializes a new instance of the Avalonia.Controls.PdfLoadErrorEventArgs class.

public PdfLoadErrorEventArgs(string message, Exception exception)

Parameters

message string

A human-readable description of the failure.

exception Exception

The underlying exception, if any.

Properties

NameDescription
ExceptionGets the underlying exception that caused the failure, or .
MessageGets a human-readable description of why the document failed to load.

Exception Property

Gets the underlying exception that caused the failure, or .

public Exception Exception { get; set; }

Message Property

Gets a human-readable description of why the document failed to load.

public string Message { get; set; }