PDFView4NET WPF Edition
PasswordRequired Event




O2S.Components.PDFView4NET Namespace > PDFDocument Class : PasswordRequired Event
Gets or sets the event being fired when a password is required for opening the PDF file.
Syntax
'Declaration
 
<CategoryAttribute("PDF")>
<DescriptionAttribute("Fired when a password is required for opening the PDF file")>
<DefaultValueAttribute("")>
Public Event PasswordRequired As EventHandler(Of PasswordRequiredEventArgs)
'Usage
 
Dim instance As PDFDocument
Dim handler As EventHandler(Of PasswordRequiredEventArgs)
 
AddHandler instance.PasswordRequired, handler
[Category("PDF")]
[Description("Fired when a password is required for opening the PDF file")]
[DefaultValue("")]
public event EventHandler<PasswordRequiredEventArgs> PasswordRequired
[Category("PDF")]
[Description("Fired when a password is required for opening the PDF file")]
[DefaultValue("")]
public: __event EventHandler<PasswordRequiredEventArgs*>* PasswordRequired
[Category("PDF")]
[Description("Fired when a password is required for opening the PDF file")]
[DefaultValue("")]
public:
event EventHandler<PasswordRequiredEventArgs^>^ PasswordRequired
Event Data

The event handler receives an argument of type PasswordRequiredEventArgs containing data related to this event. The following PasswordRequiredEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether the PasswordRequired event should be fired again or not if the password is not valid.  
Gets or sets the password to be used for opening the PDF file.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also