GetProjectFileInfo

GetProjectFileInfo(string)

Read project file info from the file.

public static ProjectFileInfo GetProjectFileInfo(string filename)
ParameterTypeDescription
filenameStringThe 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


GetProjectFileInfo(Stream)

Gets project file info from the stream.

public static ProjectFileInfo GetProjectFileInfo(Stream stream)
ParameterTypeDescription
streamStreamThe 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