Deployment Tools Foundation
OpenView Method (sqlFormat, args)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► Database ► OpenView(String, array<Object>[]()[])
Gets a View object representing the query specified by a SQL string.
Declaration Syntax
Return Value
A View object representing the query specified by a SQL string
Remarks
The sqlFormat parameter is formatted using Format(String, array<Object>[]()[]).
The View object should be Close()()()d after use. It is best that the handle be closed manually as soon as it is no longer needed, as leaving lots of unused handles open can degrade performance.
Win32 MSI API: MsiDatabaseOpenView
Exceptions
Exception | Condition |
---|---|
BadQuerySyntaxException | the SQL syntax is invalid |
InvalidHandleException | the Database handle is invalid |