References Interface
Visual Studio 2010
Contains all the references to external components in a Visual Basic or C# project.
Assembly: VSLangProj (in VSLangProj.dll)
The References type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ContainingProject | Gets the project of which the selected item is a part. Read-only. |
![]() | Count | Gets a value indicating the number of objects in the collection. Read-only. |
![]() | DTE | Gets the top-level extensibility object. |
![]() | Parent | Gets the immediate parent object of a given object. |
| Name | Description | |
|---|---|---|
![]() | Add | Adds a new reference to the project. |
![]() | AddActiveX | Adds a reference to an ActiveX type library. |
![]() | AddProject | Adds a new project reference to the project and returns the newly created Reference object. |
![]() | Find | Searches the references in a project for an object that has the specified Identity. |
![]() | GetEnumerator() | Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.) |
![]() | GetEnumerator() | Gets an enumeration for items in a collection. |
![]() | Item | Returns an indexed Reference object. |
In order to write code against an external component, your project must first contain a reference to that component. A reference can be made to three types of components: .NET assemblies, .NET projects, and COM automation servers and controls. For more information on the types of references that may be added, see Add, AddActiveX, and AddProject.
See the References.
