Queryable.Prepend<TSource>(IQueryable<TSource>, TSource) メソッド

定義

source の要素と、先頭に追加された指定の element を含む、クエリ可能な新しいシーケンスを返します。Returns a new queryable sequence that contains the elements from source plus the specified element prepended at the beginning.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::IQueryable<TSource> ^ Prepend(System::Linq::IQueryable<TSource> ^ source, TSource element);
public static System.Linq.IQueryable<TSource> Prepend<TSource> (this System.Linq.IQueryable<TSource> source, TSource element);
static member Prepend : System.Linq.IQueryable<'Source> * 'Source -> System.Linq.IQueryable<'Source>
<Extension()>
Public Function Prepend(Of TSource) (source As IQueryable(Of TSource), element As TSource) As IQueryable(Of TSource)

型パラメーター

TSource

クエリ可能なシーケンス内の要素の型。The type of the elements in the queryable sequence.

パラメーター

source
IQueryable<TSource>

クエリ可能なシーケンス。A queryable sequence.

element
TSource

TSource に追加する source 型の要素。An element of type TSource to prepend to source.

戻り値

IQueryable<TSource>

source の要素と、先頭に追加された指定の element を含む、クエリ可能な新しいシーケンス。A new queryable sequence that contains the elements from source plus the specified element prepended at the beginning.

例外

sourcenull です。source is null.

適用対象