AsQueryable Method (db)

Microsoft Deployment Tools

Deployment Tools Foundation AsQueryable Method (db)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.LinqQueryableAsQueryable(Database)
Converts any Database instance into a queryable database.
Declaration Syntax
C# Visual Basic Visual C++
public static QDatabase AsQueryable(
	Database db
)
Public Shared Function AsQueryable ( _
	db As Database _
) As QDatabase
public:
static QDatabase^ AsQueryable(
	Database^ db
)
Parameters
db (Database)
Return Value
Queryable database instance that operates on the same MSI handle.
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) Version: 3.0.0.0 (3.5.1623.0)