Reference3::SourceProject Property

 

Gets a Project object if the reference is a project. Otherwise, it returns Nothing (a null object).

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

property Project^ SourceProject {
	Project^ get();
}

Property Value

Type: EnvDTE::Project^

Returns a Project object.

For 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.

No code example is currently available or this language may not be supported.
Return to top
Show: