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| C# | Visual Basic | Visual C++ | F# |
public int CountRows( string table, string where )
Public Function CountRows ( table As String, where As String ) As Integer
public: int CountRows( String^ table, String^ where )
member CountRows : table : string * where : string -> int
Return ValueInt32
The count of all rows in the table satisfying the condition
The 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 |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)