ProjectGetProjectFileInfo Method (Stream) |
Gets project file info from the stream.
Namespace:
Aspose.Tasks
Assembly:
Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntaxpublic static ProjectFileInfo GetProjectFileInfo(
Stream stream
)
Public Shared Function GetProjectFileInfo (
stream As Stream
) As ProjectFileInfo
public:
static ProjectFileInfo^ GetProjectFileInfo(
Stream^ stream
)
static member GetProjectFileInfo :
stream : Stream -> ProjectFileInfo
Parameters
- stream
- Type: System.IOStream
The data stream.
Return Value
Type:
ProjectFileInfoThe project file info
ProjectFileInfo.
ExamplesShows 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