References References References References Interface

Definition

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

public interface class References : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("B8758EE4-0553-4BC9-8432-440449D35C14")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface References : System.Collections.IEnumerable
type References = interface
    interface IEnumerable
Public Interface References
Implements IEnumerable
Derived
Attributes
Implements

Examples

See the References.

Remarks

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.

Properties

ContainingProject ContainingProject ContainingProject ContainingProject

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

Count Count Count Count

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

DTE DTE DTE DTE

Gets the top-level extensibility object.

Parent Parent Parent Parent

Gets the immediate parent object of a given object.

Methods

Add(String) Add(String) Add(String) Add(String)

Adds a new reference to the project.

AddActiveX(String, Int32, Int32, Int32, String) AddActiveX(String, Int32, Int32, Int32, String) AddActiveX(String, Int32, Int32, Int32, String) AddActiveX(String, Int32, Int32, Int32, String)

Adds a reference to an ActiveX type library.

AddProject(Project) AddProject(Project) AddProject(Project) AddProject(Project)

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

Find(String) Find(String) Find(String) Find(String)

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

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Gets an enumeration for items in a collection.

Item(Object) Item(Object) Item(Object) Item(Object)

Returns an indexed Reference object.

Applies to