Condividi tramite


IVsSettingsReader.ReadCategoryVersion Method

Returns the value of a category 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 ReadCategoryVersion ( _
    <OutAttribute> ByRef pnMajor As Integer, _
    <OutAttribute> ByRef pnMinor As Integer, _
    <OutAttribute> ByRef pnBuild As Integer, _
    <OutAttribute> ByRef pnRevision As Integer _
) As Integer
int ReadCategoryVersion(
    out int pnMajor,
    out int pnMinor,
    out int pnBuild,
    out int pnRevision
)
int ReadCategoryVersion(
    [OutAttribute] int% pnMajor, 
    [OutAttribute] int% pnMinor, 
    [OutAttribute] int% pnBuild, 
    [OutAttribute] int% pnRevision
)
abstract ReadCategoryVersion : 
        pnMajor:int byref * 
        pnMinor:int byref * 
        pnBuild:int byref * 
        pnRevision:int byref -> int
function ReadCategoryVersion(
    pnMajor : int, 
    pnMinor : int, 
    pnBuild : int, 
    pnRevision : int
) : int

Parameters

  • pnMajor
    Type: Int32%

    [out] The major version number of the category.

  • pnMinor
    Type: Int32%

    [out] The minor version number of the category.

  • pnBuild
    Type: Int32%

    [out] The build number of the category.

  • pnRevision
    Type: Int32%

    [out] The revision number of the category.

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