Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
<CLSCompliantAttribute(False)> _
Public Shared Function FindProjectsInSolution ( _
solution As IVsSolution _
) As Collection(Of IVsHierarchy)
'使用
Dim solution As IVsSolution
Dim returnValue As Collection(Of IVsHierarchy)
returnValue = ShellUtility.FindProjectsInSolution(solution)
[CLSCompliantAttribute(false)]
public static Collection<IVsHierarchy> FindProjectsInSolution(
IVsSolution solution
)
[CLSCompliantAttribute(false)]
public:
static Collection<IVsHierarchy^>^ FindProjectsInSolution(
IVsSolution^ solution
)
public static function FindProjectsInSolution(
solution : IVsSolution
) : Collection<IVsHierarchy>
Parameters
- solution
Type: Microsoft.VisualStudio.Shell.Interop.IVsSolution
Return Value
Type: System.Collections.ObjectModel.Collection<IVsHierarchy>
Permissions
- 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.