Deployment Tools Foundation
CountRows Method (table, where)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► CountRows(String, String)
Gets the count of all rows in the table that satisfy a given condition.
Declaration Syntax
Return ValueThe count of all rows in the table satisfying the condition
Exceptions| Exception | Condition |
|---|---|
| BadQuerySyntaxException | the SQL WHERE syntax is invalid |
| InstallerException | the View could not be executed |
| InvalidHandleException | the Database handle is invalid |