Partager via


IVsSettingsReader.ReadFileVersion Method

Returns the value of a file version object stored in the Visual Studio settings file.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function ReadFileVersion ( _
    <OutAttribute> ByRef pnMajor As Integer, _
    <OutAttribute> ByRef pnMinor As Integer, _
    <OutAttribute> ByRef pnBuild As Integer, _
    <OutAttribute> ByRef pnRevision As Integer _
) As Integer
int ReadFileVersion(
    out int pnMajor,
    out int pnMinor,
    out int pnBuild,
    out int pnRevision
)
int ReadFileVersion(
    [OutAttribute] int% pnMajor, 
    [OutAttribute] int% pnMinor, 
    [OutAttribute] int% pnBuild, 
    [OutAttribute] int% pnRevision
)
abstract ReadFileVersion : 
        pnMajor:int byref * 
        pnMinor:int byref * 
        pnBuild:int byref * 
        pnRevision:int byref -> int
function ReadFileVersion(
    pnMajor : int, 
    pnMinor : int, 
    pnBuild : int, 
    pnRevision : int
) : int

Parameters

  • pnMajor
    Type: Int32%

    [out] The major version number of the file.

  • pnMinor
    Type: Int32%

    [out] The minor version number of the file.

  • pnBuild
    Type: Int32%

    [out] The build number of the file.

  • pnRevision
    Type: Int32%

    [out] The revision number of the file.

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsSettingsReader Interface

Microsoft.VisualStudio.Shell.Interop Namespace