ProjectItem.SubProject 속성

프로젝트 항목은 루트 하위 프로젝트의 경우 그런 다음 SubProject 속성에서 반환 된 Project 하위 프로젝트에 대 한 개체.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
ReadOnly Property SubProject As Project
Project SubProject { get; }
property Project^ SubProject {
    Project^ get ();
}
abstract SubProject : Project with get
function get SubProject () : Project

속성 값

형식: EnvDTE.Project
Project 개체

예제

Sub SubProjectExample()
   Dim proj As Project
   Dim projitems As ProjectItems
   Dim msg As String

   ' Reference the current solution and its projects and project items.
   proj = DTE.ActiveSolutionProjects(0)
   projitems = proj.ProjectItems

   ' List properties of the project and its items.
   msg = "Is the item open? " & projitems.Item(1).IsOpen & Chr(13)
   msg = msg & "The project's unique name: " & proj.UniqueName
   ' The following two properties work only if the current project 
   ' contains subprojects. If it does, then uncomment the lines to run 
   ' them.
   ' msg = msg & "The parent project item name: " & proj.ParentProjectItem.Name & Chr(13)
   ' msg = msg & "The subproject name: " & projitems.Item(1).SubProject.Name & Chr(13)
   MsgBox(msg)
End Sub

.NET Framework 보안

참고 항목

참조

ProjectItem 인터페이스

EnvDTE 네임스페이스

기타 리소스

프로젝트 및 솔루션 제어