MpdSettings

MpdSettings constructor

Initializes a new instance of the MpdSettings class.

public MpdSettings(string connectionString, int projectId)
ParameterTypeDescription
connectionStringStringthe specified connection string.
projectIdInt32the specified id of a project to read.

Examples

Shows how to read a project from an MPD file.

DbSettings settings = new MpdSettings("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + DataDir + "MpdFileToRead.mpd", 1);
var project = new Project(settings);
Console.WriteLine(project.Get(Prj.Name));

See Also