IBuildInformation.GetSortedNodesByType Method
Gets a sorted list of the information nodes in Nodes and all subtrees (recursive) with the specified type. Sorting is performed first by hierarchy and then by the specified comparer.
Namespace: Microsoft.TeamFoundation.Build.Client
Assembly: Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
Function GetSortedNodesByType ( _
type As String, _
comparer As IComparer(Of IBuildInformationNode) _
) As List(Of IBuildInformationNode)
'Usage
Dim instance As IBuildInformation
Dim type As String
Dim comparer As IComparer(Of IBuildInformationNode)
Dim returnValue As List(Of IBuildInformationNode)
returnValue = instance.GetSortedNodesByType(type, _
comparer)
List<IBuildInformationNode> GetSortedNodesByType(
string type,
IComparer<IBuildInformationNode> comparer
)
List<IBuildInformationNode^>^ GetSortedNodesByType(
String^ type,
IComparer<IBuildInformationNode^>^ comparer
)
function GetSortedNodesByType(
type : String,
comparer : IComparer<IBuildInformationNode>
) : List<IBuildInformationNode>
Parameters
type
Type: System.StringThe type for which nodes are returned.
comparer
Type: System.Collections.Generic.IComparer<IBuildInformationNode>The comparison used to sort nodes at the same level in the hierarchy. For more information, see IComparer.
Return Value
Type: System.Collections.Generic.List<IBuildInformationNode>
Returns a sorted list of the information nodes in Nodes and all subtrees with the specified type.
.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.