[This is preliminary documentation and is subject to change.]

Returns a collection of tokens that contains the descendants of every token in the source collection.

Namespace:  Facebook.Json.Linq
Assembly:  Facebook (in Facebook.dll) Version: 0.2009.3.23 (0.2009.3.23)

Syntax

C#
public static IJEnumerable<JToken> Descendants<T>(
	this IEnumerable<T> source
)
where T : JContainer
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Function Descendants(Of T As JContainer) ( _
	source As IEnumerable(Of T) _
) As IJEnumerable(Of JToken)
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : JContainer
static IJEnumerable<JToken^>^ Descendants(
	IEnumerable<T>^ source
)

Parameters

source
Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
An IEnumerable<(Of <(T>)>) of JToken that contains the source collection.

Type Parameters

T
The type of the objects in source, constrained to JContainer.

Return Value

An IEnumerable<(Of <(T>)>) of JToken that contains the descendants of every node in the source collection.

See Also

Extensions Class
Facebook.Json.Linq Namespace