다음을 통해 공유


_DTE.ActiveSolutionProjects 속성

현재 선택한 프로젝트의 배열을 가져옵니다.

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

구문

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

속성 값

형식: Object
현재 선택한 프로젝트의 배열입니다.

예제

Sub ActiveSolutionProjectsExample()
  ' Returns the name of the currently selected project in the solution.
  Dim projs As System.Array
  Dim proj As Project
  projs = DTE.ActiveSolutionProjects()
  If projs.Length > 0 Then
    proj = CType(projs.GetValue(0), EnvDTE.Project)
      MsgBox(proj.UniqueName)
    Else
      MsgBox(projs.Length)
  End If
End Sub

.NET Framework 보안

참고 항목

참조

_DTE 인터페이스

EnvDTE 네임스페이스