LoadOptions Class

Allows to specify additional load parameters when loading a project from file or stream.
Inheritance Hierarchy
SystemObject
  Aspose.TasksLoadOptions

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class LoadOptions

The LoadOptions type exposes the following members.

Constructors
  NameDescription
Public methodLoadOptions
Initializes a new instance of the LoadOptions class
Properties
  NameDescription
Public propertyCode exampleErrorHandler
Gets or sets a callback method to handle xml parse errors.
Public propertyCode examplePassword
Gets or sets a protection password.
Public propertyCode examplePrimaveraOptions
Gets or sets a specified instance of the PrimaveraXmlReadingOptions class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
Shows how to load the password-protected project using <see cref="Aspose.Tasks.LoadOptions"/> instance.
using (var stream = new FileStream(DataDir + "PasswordProtectedProject.mpp", FileMode.Open))
{
    var options = new LoadOptions
    {
        Password = "password"
    };
    var project = new Project(stream, options);
    Console.WriteLine(project.Get(Prj.Name));
}
See Also