Click or drag to resize

WorksessionFileReadFileVersion Method

Reads only the version from the header of a worksession file.

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static int ReadFileVersion(
	string path
)

Parameters

path
Type: SystemString
The file to read.

Return Value

Type: Int32
The file's version, or 0 if the file cannot be read or is not a worksession file. A version greater than CurrentVersion is from a newer version of Rhino.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf path is null.
See Also