RefactoringUtils.GetProjects Method
Returns a list of project IVsHierarchy in the solution with a specified project type.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Refactoring
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function GetProjects ( _
solution As IVsSolution, _
projectTypeGuid As Guid _
) As List(Of IVsHierarchy)
'Usage
Dim solution As IVsSolution
Dim projectTypeGuid As Guid
Dim returnValue As List(Of IVsHierarchy)
returnValue = RefactoringUtils.GetProjects(solution, _
projectTypeGuid)
public static List<IVsHierarchy> GetProjects(
IVsSolution solution,
Guid projectTypeGuid
)
public:
static List<IVsHierarchy^>^ GetProjects(
IVsSolution^ solution,
Guid projectTypeGuid
)
public static function GetProjects(
solution : IVsSolution,
projectTypeGuid : Guid
) : List<IVsHierarchy>
static member GetProjects :
solution:IVsSolution *
projectTypeGuid:Guid -> List<IVsHierarchy>
Parameters
- solution
Type: Microsoft.VisualStudio.Shell.Interop.IVsSolution
The solution
- projectTypeGuid
Type: System.Guid
The project type
Return Value
Type: System.Collections.Generic.List<IVsHierarchy>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Refactoring Namespace