Export (0) Print
Expand All
Expand Minimize

Object Property

Visual Studio .NET 2003

Provides a reference between the Visual Studio .NET object model and the Visual C++ .NET object model.

[Visual Basic .NET]
Public ReadOnly Property Object() As Object
[Visual Basic 6]
Property Get Object() As Object
[C++]
HRESULT __stdcall get_Object(
   /* [out, retval] */ IDispatch** retVal
);
[C#]
public object Object {get;}
[JScript .NET]
public function get Object() : Object

Return Value

A reference to the Visual Studio .NET object model.

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: VCFile Object | VCFilter Object | VCProject Object

Show:
© 2014 Microsoft