Deployment Tools Foundation
IsTablePersistent Method (table)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► IsTablePersistent(String)
Checks whether a table exists and is persistent in the database.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public bool IsTablePersistent( string table )
Public Function IsTablePersistent ( table As String ) As Boolean
public: bool IsTablePersistent( String^ table )
member IsTablePersistent : table : string -> bool
Parameters
- table (String)
- The table to the checked
Return Value
Boolean
true if the table exists and is persistent in the database; false otherwise
true if the table exists and is persistent in the database; false otherwise
Remarks
To check whether a table exists regardless of persistence, use Contains(String).
Win32 MSI API: MsiDatabaseIsTablePersistent
Exceptions
Exception | Condition |
---|---|
ArgumentException | the table is unknown |
InvalidHandleException | the Database handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)