Udostępnij za pośrednictwem


IVsSettingsReader.ReadFileVersion(Int32, Int32, Int32, Int32) Method

Definition

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.

Applies to