0 out of 1 rated this helpful - Rate this topic

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

The References type exposes the following members.

  NameDescription
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.
Top
  NameDescription
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.
Top

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.