Reference3::SourceProject Property
Visual Studio 2015
Gets a Project object if the reference is a project. Otherwise, it returns Nothing (a null object).
Assembly: VSLangProj80 (in VSLangProj80.dll)
Implements
Reference2::SourceProjectFor one project to use objects built by a second project, the first project must contain a reference to the second project. In such a case, the SourceProject property can return a Project object for the second project.
This example iterates through all the references and displays the name of the SourceProject, if there is one. To run this example as an add-in, see How to: Compile and Run the Automation Object Model Code Examples. Open a Visual Basic or Visual C# project before running this example.
Show: