Export (0) Print
Expand All
Expand Minimize

References Property

Visual Studio .NET 2003

Returns the collection of references for the selected project.

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

Return Value

A collection of references for the selected project.

Example

' 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 cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCAuxiliaryManagedWrapperGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCAuxiliaryManagedWrapperGeneratorTool")
        MsgBox("References: " & tool.References)
    End Sub
End Module

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

See Also

Applies To: VCAuxiliaryManagedWrapperGeneratorTool Object | VCProject Object | VCWebServiceProxyGeneratorTool Object

Show:
© 2014 Microsoft