Represents single Project from a database.
For a list of all members of this type, see MPDPrj Members.
System.Object
Aspose.Tasks.MPXFile
Aspose.Tasks.MPDPrj
[Visual Basic]NotInheritable Public Class MPDPrj
[C#]public sealed class MPDPrj
: MPXFile Thread Safety
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Example
[C#]
try
{
MPDDatabase mpd;
// Open Microsoft Project database
mpd = new MPDDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Projects\\sample.mpd");
if (mpd != null)
{
System.Collections.IEnumerator iter = mpd.GetEnumerator();
while (iter.MoveNext() == true)
{
MPDPrj mp = mpd.ReadMPDProject((MPDPrjInfo)(iter.Current));
// ... do something
}
}
}
catch (System.Exception ex)
{
throw new System.Exception("Failed to read file");
}
[Visual Basic]
Try
Dim mpd As MPDDatabase
' Open Microsoft Project database
mpd = New MPDDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Projects\\sample.mpd")
If Not mpd Is Nothing Then
Dim iter As System.Collections.IEnumerator = mpd.GetEnumerator()
While iter.MoveNext() = True
Dim mp As MPDPrj = mpd.ReadMPDProject(CType((iter.Current), MPDPrjInfo))
' ... do something
End While
End If
Catch ex As System.Exception
Throw New System.Exception("Failed to read file")
End Try
Requirements
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks (in Aspose.Tasks.dll)
See Also
MPDPrj Members | Aspose.Tasks Namespace