public static IAsyncResult BeginSort<TKey, TValue>(
ArraySection<TKey> keys,
ArraySection<TValue> values,
IComparer<TKey>? comparer = null,
AsyncConfig? asyncConfig = null
)
Public Shared Function BeginSort(Of TKey, TValue) (
keys As ArraySection(Of TKey),
values As ArraySection(Of TValue),
Optional comparer As IComparer(Of TKey) = Nothing,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResultpublic:
generic<typename TKey, typename TValue>
static IAsyncResult^ BeginSort(
ArraySection<TKey> keys,
ArraySection<TValue> values,
IComparer<TKey>^ comparer = nullptr,
AsyncConfig^ asyncConfig = nullptr
)static member BeginSort :
keys : ArraySection<'TKey> *
values : ArraySection<'TValue> *
?comparer : IComparer<'TKey> *
?asyncConfig : AsyncConfig
(* Defaults:
let _comparer = defaultArg comparer null
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult In .NET Framework 4.0 and above you can use also the SortAsync methods.
To get the result or the exception that occurred during the operation you have to call the EndSort method.
This method is not a blocking call even if the MaxDegreeOfParallelism property of the asyncConfig parameter is 1.
| ArgumentException | The IsNull property of values is and values has fewer elements than keys. |