Deployment Tools Foundation
AsQueryable Method (db)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Linq ► Queryable ► AsQueryable(Database)
Converts any Database instance into a queryable database.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public static QDatabase AsQueryable( this Database db )
<ExtensionAttribute> Public Shared Function AsQueryable ( db As Database ) As QDatabase
public: [ExtensionAttribute] static QDatabase^ AsQueryable( Database^ db )
[<ExtensionAttribute>] static member AsQueryable : db : Database -> QDatabase
Parameters
- db (Database)
Return Value
QDatabase
Queryable database instance that operates on the same MSI handle.
Queryable database instance that operates on the same MSI handle.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Database. When you use instance method syntax to call this method, omit the first parameter.
Remarks
This extension method is meant for convenient on-the-fly conversion.
If the existing database instance already happens to be a QDatabase,
then it is returned unchanged. Otherwise since the new database
carries the same MSI handle, only one of the instances needs to be
closed, not both.
Assembly: Microsoft.Deployment.WindowsInstaller.Linq (Module: Microsoft.Deployment.WindowsInstaller.Linq.dll) Version: 3.0.0.0 (3.11.1.2318)