TopologicalSort.Sort Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Sorts the passed in management packs based on their reference to generate a valid install order. If the management packs present a cyclic dependency, then the method throws an exception.
Namespace: Microsoft.EnterpriseManagement.Common
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)
Usage
'Usage
Dim managementPacks As List(Of ManagementPack)
Dim returnValue As List(Of ManagementPack)
returnValue = TopologicalSort.Sort(managementPacks)
Syntax
'Declaration
Public Shared Function Sort ( _
managementPacks As List(Of ManagementPack) _
) As List(Of ManagementPack)
public static List<ManagementPack> Sort (
List<ManagementPack> managementPacks
)
public:
static List<ManagementPack^>^ Sort (
List<ManagementPack^>^ managementPacks
)
public static List<ManagementPack> Sort (
List<ManagementPack> managementPacks
)
public static function Sort (
managementPacks : List<ManagementPack>
) : List<ManagementPack>
Parameters
- managementPacks
The management packs to sort.
Return Value
The list of sorted management packs.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows Server 2003, and
Target Platforms
Windows Server 2008,Windows Server 2003
See Also
Reference
TopologicalSort Class
TopologicalSort Members
Microsoft.EnterpriseManagement.Common Namespace