Single Method
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Linq Namespace
Enumerable Class
Enumerable Methods
Single Method
Single(TSource) Method (IEnume ...
Single(TSource) Method (IEnume ...
Enumerable Methods
Aggregate Method
All(TSource) Method
Any Method
AsEnumerable(TSource) Method
Average Method
Cast(TResult) Method
Concat(TSource) Method
Contains Method
Count Method
DefaultIfEmpty Method
Distinct Method
ElementAt(TSource) Method
ElementAtOrDefault(TSource) Me ...
Empty(TResult) Method
Except Method
First Method
FirstOrDefault Method
GroupBy Method
GroupJoin Method
Intersect Method
Join Method
Last Method
LastOrDefault Method
LongCount Method
Max Method
Min Method
OfType(TResult) Method
OrderBy Method
OrderByDescending Method
Range Method
Repeat(TResult) Method
Reverse(TSource) Method
Select Method
SelectMany Method
SequenceEqual Method
Single Method
SingleOrDefault Method
Skip(TSource) Method
SkipWhile Method
Sum Method
Take(TSource) Method
TakeWhile Method
ThenBy Method
ThenByDescending Method
ToArray(TSource) Method
ToDictionary Method
ToList(TSource) Method
ToLookup Method
Union Method
Where Method
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
Enumerable
.
.
::
.
Single Method
Returns a single, specific element of a sequence of values.
Overload List
Name
Description
Single
<
(Of
<
(
TSource
>
)
>
)
(IEnumerable
<
(Of
<
(
TSource
>
)
>
)
)
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
Single
<
(Of
<
(
TSource
>
)
>
)
(IEnumerable
<
(Of
<
(
TSource
>
)
>
)
, Func
<
(Of
<
(
TSource, Boolean
>
)
>
)
)
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
Top
See Also
Reference
Enumerable Class
Enumerable Members
System.Linq Namespace
Tags :