WCF-Xtensions Class Reference for Mono
Ancestors<T> Method (Extensions)






The type of the objects in source, constrained to JToken.
An System.Collections.Generic.IEnumerable`1 of JToken that contains the source collection.
Returns a collection of tokens that contains the ancestors of every token in the source collection.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function Ancestors(Of T As JToken)( _
   ByVal source As System.Collections.Generic.IEnumerable(Of T) _
) As IJEnumerable(Of JToken)
'Usage
 
Dim source As System.Collections.Generic.IEnumerable(Of T)
Dim value As IJEnumerable(Of JToken)
 
value = Extensions.Ancestors(Of T)(source)
[System.Runtime.CompilerServices.Extension()]
public static IJEnumerable<JToken> Ancestors<T>( 
   System.Collections.Generic.IEnumerable<T> source
)
where T: JToken
public function Ancestors( 
    source: System.Collections.Generic.IEnumerable
): IJEnumerable; static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function Ancestors( 
   source : System.Collections.Generic.IEnumerable
) : IJEnumerable;
[System.Runtime.CompilerServices.Extension()]
public: static IJEnumerable<JToken*>* Ancestors<T>( 
   System.Collections.Generic.IEnumerable<T*>* source
) 
where T: JToken
[System.Runtime.CompilerServices.Extension()]
public:
static IJEnumerable<JToken^>^ Ancestorsgeneric<typename T>
( 
   System.Collections.Generic.IEnumerable<T^>^ source
) 
where T: JToken

Parameters

source
An System.Collections.Generic.IEnumerable`1 of JToken that contains the source collection.

Type Parameters

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

Return Value

An System.Collections.Generic.IEnumerable`1 of JToken that contains the ancestors of every node in the source collection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Extensions Class
Extensions Members

Send Feedback