Deployment Tools Foundation
IsColumnPersistent Method (table, column)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► IsColumnPersistent(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 )
Return Value
Boolean
true if the column exists in the table; false if the column is temporary or does not exist.
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)