IVsSettingsReader.ReadFileVersion(Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of a file version object stored in the Visual Studio settings file.
public:
int ReadFileVersion([Runtime::InteropServices::Out] int % pnMajor, [Runtime::InteropServices::Out] int % pnMinor, [Runtime::InteropServices::Out] int % pnBuild, [Runtime::InteropServices::Out] int % pnRevision);
int ReadFileVersion([Runtime::InteropServices::Out] int & pnMajor, [Runtime::InteropServices::Out] int & pnMinor, [Runtime::InteropServices::Out] int & pnBuild, [Runtime::InteropServices::Out] int & pnRevision);
public int ReadFileVersion (out int pnMajor, out int pnMinor, out int pnBuild, out int pnRevision);
abstract member ReadFileVersion : int * int * int * int -> int
Public Function ReadFileVersion (ByRef pnMajor As Integer, ByRef pnMinor As Integer, ByRef pnBuild As Integer, ByRef pnRevision As Integer) As Integer
Parameters
- pnMajor
- Int32
[out] The major version number of the file.
- pnMinor
- Int32
[out] The minor version number of the file.
- pnBuild
- Int32
[out] The build number of the file.
- pnRevision
- Int32
[out] The revision number of the file.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.