InvalidPasswordException Class |
Represents the exception type which is thrown when password protected file opening with wrong password.
Inheritance Hierarchy
Namespace:
Aspose.Tasks
Assembly:
Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax[SerializableAttribute]
public class InvalidPasswordException : TasksException
<SerializableAttribute>
Public Class InvalidPasswordException
Inherits TasksException
[SerializableAttribute]
public ref class InvalidPasswordException : public TasksException
[<SerializableAttribute>]
type InvalidPasswordException =
class
inherit TasksException
end
The InvalidPasswordException type exposes the following members.
Constructors
Properties
Methods
ExamplesShows how to handle <see cref="InvalidPasswordException"/> while reading a password protected project files.
try
{
var project = new Project(DataDir + "PasswordProtected.mpp");
Console.WriteLine("Project Name: " + project.Get(Prj.Name));
}
catch (TasksReadingException e)
{
Console.WriteLine(e.Message);
}
See Also