Click or drag to resize

SessionBaseContainsDatabase Method

Check if database file exist in a given DatabaseLocation

Namespace:  VelocityDb.Session
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public virtual bool ContainsDatabase(
	DatabaseLocation location,
	uint dbNum,
	string extension = ".odb"
)

Parameters

location
Type: VelocityDbDatabaseLocation
Location to check
dbNum
Type: SystemUInt32
Database number/id
extension (Optional)
Type: SystemString
File name extension/id

Return Value

Type: Boolean
true if exist; otherwise false
See Also