Project.GetProjectFileInfo
Contents
[
Hide
]GetProjectFileInfo(string)
Read project file info from the file.
public static ProjectFileInfo GetProjectFileInfo(string filename)
Parameter | Type | Description |
---|---|---|
filename | String | The project filename. |
Return Value
The project file info ProjectFileInfo
.
Examples
Shows how to read project file info were read from an XML file.
var info = Project.GetProjectFileInfo(DataDir + "Project.xml");
Console.WriteLine("CanRead: " + info.CanRead);
Console.WriteLine("ProjectApplicationInfo: " + info.ProjectApplicationInfo);
Console.WriteLine("ProjectFileFormat: " + info.ProjectFileFormat);
See Also
- class ProjectFileInfo
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks
GetProjectFileInfo(Stream)
Gets project file info from the stream.
public static ProjectFileInfo GetProjectFileInfo(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The data stream. |
Return Value
The project file info ProjectFileInfo
.
Examples
Shows how to read project file info of XML file read from a stream.
using (var stream = new FileStream(DataDir + "Project.xml", FileMode.Open))
{
var info = Project.GetProjectFileInfo(stream);
Console.WriteLine("CanRead: " + info.CanRead);
Console.WriteLine("ProjectApplicationInfo: " + info.ProjectApplicationInfo);
Console.WriteLine("ProjectFileFormat: " + info.ProjectFileFormat);
}
See Also
- class ProjectFileInfo
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks