InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml) ASP.Net TOCASP.NetMiscellaneous Feature ASP.NET Scripting Visual Basic .NET TOC VB ReferenceVB .NET Typographic and Code ConventionsVB .NET Runtime Library MembersVB .NET KeywordsVB.NET AttributesVB .NET Constants and EnumerationsVB .NET Data Type SummaryVB .NET DirectivesVB.NET FunctionsVB.NETModifiersVB .NET ModulesVB .NET NothingVB.NET ObjectsVB.NET OperatorsVB .NET Properties VB .NET QueryVB .NET Aggregate ClauseVB .NET Distinct ClauseVB .NET Equal ClauseVB .NET From ClauseVB .NET Group By ClauseVB .NET Group John ClauseVB .NET John ClauseVB .NET Let ClauseVB .NET Order By ClauseVB .NET Select ClauseVB .NET Skip ClauseVB .NET Skip While Clause Draft for Information Only
ContentTake Clause
Take ClauseReturns a specified number of contiguous elements from the start of a collection.Syntax
PartsTermDefinition countRequired. A value or an expression that evaluates to the number of elements of the sequence to return.RemarksThe Take clause causes a query to include a specified number of contiguous elements from the start of a results list. The number of elements to include is specified by the count parameter. You can use the Take clause with the Skip clause to return a range of data from any segment of a query. To do this, pass the index of the first element of the range to the Skip clause and the size of the range to the Take clause. In this case, the Take clause must be specified after the Skip clause. When you use the Take clause in a query, you may also need to ensure that the results are returned in an order that will enable the Take clause to include the intended results. For more information about ordering query results, see Order By Clause. You can use the TakeWhile clause to specify that only certain elements be returned, depending on a supplied condition.ExampleThe following code example uses the Take clause together with the Skip clause to return data from a query in pages. The GetCustomers function uses the Skip clause to bypass the customers in the list until the supplied starting index value, and uses the Take clause to return a page of customers starting from that index value.
See also
Source/Reference©sideway ID: 210500021 Last Updated: 5/21/2021 Revision: 0 Ref: ![]() References
![]() Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019