Partager via


Reference2.SourceProject Property

Gets a Project object if the reference is a project. Otherwise, it returns Nothing (a nulla null reference (Nothing in Visual Basic) reference). Read-only.

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

Syntax

'Declaration
ReadOnly Property SourceProject As Project
Project SourceProject { get; }
property Project^ SourceProject {
    Project^ get ();
}
abstract SourceProject : Project with get
function get SourceProject () : Project

Property Value

Type: EnvDTE.Project
Returns a Project object.

Remarks

In order for one project to make use of 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.

.NET Framework Security

See Also

Reference

Reference2 Interface

VSLangProj2 Namespace