IsColumnPersistent Method (table, column)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
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
Boolean
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.dll) Version: 3.0.0.0 (3.9.1006.0)