IsColumnPersistent Method (table, column)

Microsoft Deployment Tools

Deployment Tools Foundation IsColumnPersistent Method (table, column)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseIsColumnPersistent(String, String)
Checks whether a table contains a persistent column with a given name.
Declaration Syntax
C# Visual Basic Visual C++
public bool IsColumnPersistent(
	string table,
	string column
)
Public Function IsColumnPersistent ( _
	table As String, _
	column As String _
) As Boolean
public:
bool IsColumnPersistent(
	String^ table, 
	String^ column
)
Parameters
table (String)
The table to the checked
column (String)
The name of the column to be checked
Return Value
true if the column exists in the table; false if the column is temporary or does not exist.
Remarks

To check whether a column exists regardless of persistence, use Contains(String).

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)