References Interface

 

Contains all the references to external components in a Visual Basic or C# project.

Namespace:   VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

[GuidAttribute("B8758EE4-0553-4BC9-8432-440449D35C14")]
public interface References : IEnumerable

NameDescription
System_CAPS_pubpropertyContainingProject

Gets the project of which the selected item is a part. Read-only.

System_CAPS_pubpropertyCount

Gets a value indicating the number of objects in the collection. Read-only.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a given object.

NameDescription
System_CAPS_pubmethodAdd(String)

Adds a new reference to the project.

System_CAPS_pubmethodAddActiveX(String, Int32, Int32, Int32, String)

Adds a reference to an ActiveX type library.

System_CAPS_pubmethodAddProject(Project)

Adds a new project reference to the project and returns the newly created Reference object.

System_CAPS_pubmethodFind(String)

Searches the references in a project for an object that has the specified Identity.

System_CAPS_pubmethodGetEnumerator()

Gets an enumeration for items in a collection.

System_CAPS_pubmethodItem(Object)

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.

Return to top
Show: