ProjectGetProjectFileInfo Method (Stream)

Gets project file info from the stream.

Namespace:  Aspose.Tasks
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public static ProjectFileInfo GetProjectFileInfo(
	Stream stream
)

Parameters

stream
Type: System.IOStream
The data stream.

Return Value

Type: ProjectFileInfo
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