| AsyncQueryableToDictionaryTSource, TKey, TElement Method (IAsyncQueryableTSource, ExpressionFuncTSource, TKey, ExpressionFuncTSource, TElement, IEqualityComparerTKey, CancellationToken) | 
 
Namespace: System.LinqAssembly: System.Interactive.Async.Providers (in System.Interactive.Async.Providers.dll) Version: 1.2.0.0
 Syntax
Syntaxpublic static Task<Dictionary<TKey, TElement>> ToDictionary<TSource, TKey, TElement>(
	this IAsyncQueryable<TSource> source,
	Expression<Func<TSource, TKey>> keySelector,
	Expression<Func<TSource, TElement>> elementSelector,
	IEqualityComparer<TKey> comparer,
	CancellationToken cancellationToken
)
Parameters
- source
- Type: System.LinqIAsyncQueryableTSource
 
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncTSource, TKey
 
- elementSelector
- Type: System.Linq.ExpressionsExpressionFuncTSource, TElement
 
- comparer
- Type: System.Collections.GenericIEqualityComparerTKey
 
- cancellationToken
- Type: System.ThreadingCancellationToken
 
Type Parameters
- TSource
- TKey
- TElement
Return Value
Type: 
TaskDictionaryTKey, 
TElementUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IAsyncQueryableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
 See Also
See Also