Sorts a range of elements in the collection of element links.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Public Sub Sort ( _
index As Integer, _
count As Integer, _
comparer As IComparer(Of T) _
)
'Usage
Dim instance As LinkedElementCollection
Dim index As Integer
Dim count As Integer
Dim comparer As IComparer(Of T)
instance.Sort(index, count, comparer)
public void Sort(
int index,
int count,
IComparer<T> comparer
)
public:
void Sort(
int index,
int count,
IComparer<T>^ comparer
)
public function Sort(
index : int,
count : int,
comparer : IComparer<T>
)
Parameters
index
Type: System.Int32The zero-based starting index of the range to sort.
count
Type: System.Int32The length of the range to sort.
comparer
Type: System.Collections.Generic.IComparer<T>The System.Collections.Generic.IComparer implementation to use when comparing elements; or nulla null reference (Nothing in Visual Basic) to use the default comparer System.Collections.Generic.Comparer.Default.
.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
LinkedElementCollection<T> Class