DbExpressionBuilder.Limit(DbExpression, DbExpression) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří novou DbLimitExpression , která omezí počet prvků v kolekci argumentů na zadanou hodnotu limitu počtu. Ve výstupu nejsou zahrnuté vázané výsledky.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbLimitExpression ^ Limit(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Common::CommandTrees::DbExpression ^ count);
public static System.Data.Common.CommandTrees.DbLimitExpression Limit(this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Common.CommandTrees.DbExpression count);
static member Limit : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbLimitExpression
<Extension()>
Public Function Limit (argument As DbExpression, count As DbExpression) As DbLimitExpression
Parametry
- argument
- DbExpression
Výraz, který určuje vstupní kolekci.
- count
- DbExpression
Výraz, který určuje mezní hodnotu.
Návraty
Nový DbLimitExpression se zadaným argumentem a mezními hodnotami počtu, které nezahrnují vázané výsledky.
Výjimky
argument nebo count má hodnotu null.
argument nemá typ výsledku kolekce nebo count nemá typ výsledku, který je roven 64bitovému celočíselnému typu.