Class MpdSettings
Contents
[
Hide
]MpdSettings class
Allows to set necessary options to read project data from MPD format (MS Access database file format).
public class MpdSettings : DbSettings
Constructors
Name | Description |
---|---|
MpdSettings(string, int) | Initializes a new instance of the MpdSettings class. |
Properties
Name | Description |
---|---|
ConnectionString { get; set; } | Gets or sets the connection string. |
ProjectId { get; } | Gets id of the project to read. |
ProviderInvariantName { get; set; } | Gets or sets provider invariant name which is used to get an instance of the DbProviderFactory class. Default value is SqlClient. |
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
- class DbSettings
- namespace Aspose.Tasks.Connectivity
- assembly Aspose.Tasks