Export (0) Print
Expand All
Expand Minimize

RevisionNumber Property

Visual Studio .NET 2003

Returns the revision number of the selected reference.

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

Return Value

An int representing the revision number of the selected reference.

Example

The following sample code lists the value of the RevisionNumber 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("Revision number: " & vcar.RevisionNumber)
    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:
© 2015 Microsoft