CompoundDocumentHeaderException Class |
Represents an exception which is thrown when the header of MPP file is broken.
Inheritance Hierarchy
Namespace:
Aspose.Tasks
Assembly:
Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax[SerializableAttribute]
public class CompoundDocumentHeaderException : ApplicationException
<SerializableAttribute>
Public Class CompoundDocumentHeaderException
Inherits ApplicationException
[SerializableAttribute]
public ref class CompoundDocumentHeaderException : public ApplicationException
[<SerializableAttribute>]
type CompoundDocumentHeaderException =
class
inherit ApplicationException
end
The CompoundDocumentHeaderException type exposes the following members.
Constructors
Properties
Methods
ExamplesShows how to catch <see cref=\"CompoundDocumentHeaderException\" /> exception.
try
{
var project = new Project(DataDir + "Project1.mpp");
Console.WriteLine("Project Name: " + project.Get(Prj.Name));
}
catch (CompoundDocumentHeaderException e)
{
Console.WriteLine(e.Message);
}
See Also