This documentation is archived and is not being maintained.

ContainingProject Property (General Extensibility)

Visual Studio .NET 2003

Returns the project hosting the project item or items.

[Visual Basic .NET]
Public ReadOnly Property ContainingProject() As Project
[Visual Basic 6]
Property Get ContainingProject() As Project
HRESULT __stdcall get_ContainingProject(
   /* [out, retval] */ Project** retVal
Project ContainingProject {get;}
[JScript .NET]
public function get ContainingProject() : Project

Return Value

Returns a Project object.


Sub ContainingProjectExample()
   Dim ProjItem As ProjectItem
   ProjItem = DTE.Solution.Projects.Item(1).ProjectItems.Item(1)
End Sub

See Also

Applies To:ProjectItem Object | ProjectItems Collection