This documentation is archived and is not being maintained.

MinorVersion Property (VCProjectEngine)

Visual Studio .NET 2003

Returns the minor version of the referenced assembly.

[Visual Basic .NET]
Public ReadOnly Property minorVersion() As Integer
[Visual Basic 6]
Property Get minorVersion() As Long
[C++]
HRESULT __stdcall get_minorVersion(
   /* [out, retval] */ long* retVal
);
[C#]
public int minorVersion {get;}
[JScript .NET]
public function get minorVersion() : int

Return Value

An int value representing the minor version of the referenced assembly.

Example

The following sample code lists the value of the MinorVersion property of the assembly reference:

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        prj = DTE.Solution.Projects.Item(1).Object
        vcar = prj.VCReferences.item(1) 
        MsgBox("Minor version: " & vcar.MinorVersion)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCActiveXReference Object | VCAssemblyReference Object | VCProjectReference Object | VCReference Object

Show: