Udostępnij za pośrednictwem


Reference.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:  VSLangProj
Assembly:  VSLangProj (in VSLangProj.dll)

Syntax

'Declaration
ReadOnly Property SourceProject As Project
    Get
Project SourceProject { get; }
property Project^ SourceProject {
    Project^ get ();
}
abstract SourceProject : Project
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.

Examples

See the example in Reference.

.NET Framework Security

See Also

Reference

Reference Interface

VSLangProj Namespace