![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
CountRows Method (table)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► CountRows(String)
Gets the count of all rows in the table.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public int CountRows( string table )
Public Function CountRows ( table As String ) As Integer
public: int CountRows( String^ table )
![](collapse_all.gif)
- table (String)
- Name of the table whose rows are to be counted
![](collapse_all.gif)
Int32
The count of all rows in the table
The count of all rows in the table
![](collapse_all.gif)
Exception | Condition |
---|---|
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.9.1006.0)