References Interface

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

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

public interface References : IEnumerable

The References type exposes the following members.

Public propertyContainingProjectGets the project of which the selected item is a part. Read-only.
Public propertyCountGets a value indicating the number of objects in the collection. Read-only.
Public propertyDTEGets the top-level extensibility object.
Public propertyParentGets the immediate parent object of a given object.

Public methodAddAdds a new reference to the project.
Public methodAddActiveXAdds a reference to an ActiveX type library.
Public methodAddProjectAdds a new project reference to the project and returns the newly created Reference object.
Public methodFindSearches the references in a project for an object that has the specified Identity.
Public methodGetEnumeratorGets an enumeration for items in a collection.
Public methodItemReturns 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft