Click or drag to resize

ExtensionsValuesU Method (IEnumerableJToken, Object)

Returns a collection of converted child values of every object in the source collection with the given key.

Namespace:  Newtonsoft.Json.Linq
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
public static IEnumerable<U> Values<U>(
	this IEnumerable<JToken> source,
	Object key


Type: System.Collections.GenericIEnumerableJToken
An IEnumerableT of JToken that contains the source collection.
Type: SystemObject
The token key.

Type Parameters

The type to convert the values to.

Return Value

Type: IEnumerableU
An IEnumerableT that contains the converted values of every token in the source collection with the given key.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableJToken. 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