CountRows Method (table)

Microsoft Deployment Tools

Deployment Tools Foundation CountRows Method (table)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseCountRows(String)
Gets the count of all rows in the table.
Declaration Syntax
C# Visual Basic Visual C++
public int CountRows(
	string table
)
Public Function CountRows ( _
	table As String _
) As Integer
public:
int CountRows(
	String^ table
)
Parameters
table (String)
Name of the table whose rows are to be counted
Return Value
The count of all rows in the table
Exceptions
Exception Condition
InstallerException the View could not be executed
InvalidHandleException the Database handle is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller) Version: 3.0.0.0 (3.5.1623.0)