Visual Basic and Visual C# Project Extensibility
References Object Properties, Methods, and Events

Properties

ContainingProject PropertyReturns a Project object for the project with this References object.
Count PropertyReturns the number of Reference objects in the collection.
DTE Property (General Extensibility)Returns the top-level extensibility object.
Parent Property (General Extensibility)Returns the VSProject object that contains this References object.

Methods

Add Method (References Object)Adds a reference to the project.
AddActiveX MethodAdds a COM reference to the project.
AddProject Method (References Object)Adds a project reference to the project.
Find Method (References Object)Finds a reference in the collection.
GetEnumerator MethodImplements the IEnumerable Interface on the References object.
Item Method (References Object)Returns an indexed Reference object.

Events

ReferenceAdded EventOccurs after a reference is added.
ReferenceChanged EventOccurs after a reference is changed.
ReferenceRemoved EventOccurs after a reference is removed.

See Also

References Object

Page view tracker