MpdSettings Class

Allows to set necessary options to read project data from MPD format (MS Access database file format).
Inheritance Hierarchy
SystemObject
  Aspose.Tasks.ConnectivityDbSettings
    Aspose.Tasks.ConnectivityMpdSettings

Namespace:  Aspose.Tasks.Connectivity
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public class MpdSettings : DbSettings

The MpdSettings type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleMpdSettings
Initializes a new instance of the MpdSettings class.
Properties
  NameDescription
Public propertyCode exampleConnectionString
Gets or sets the connection string.
(Inherited from DbSettings.)
Public propertyCode exampleProjectId
Gets id of the project to read.
Public propertyCode exampleProviderInvariantName
Gets or sets provider invariant name which is used to get an instance of the DbProviderFactory class.
Remarks
Default value is System.Data.SqlClient.
(Inherited from DbSettings.)
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 use MPD settings to control import of project from the database.
var settings = new MpdSettings("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + DataDir + "MpdFileToRead.mpd", 1);

Console.WriteLine("Project ID to load: " + settings.ProjectId);

var project = new Project(settings);
Console.WriteLine(project.Get(Prj.Name));
See Also