Click or drag to resize

DatabaseLocation Constructor (String, String, UInt32, UInt32, SessionBase, PageInfocompressionKind, PageInfoencryptionKind, Boolean, DatabaseLocation)

Creates a transient Database location. A transient DatabaseLocation is made persistent by NewLocation(DatabaseLocation)

Namespace:  VelocityDb
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public DatabaseLocation(
	string inHost,
	string dir,
	uint dbStartNum,
	uint dbEndNum,
	SessionBase session,
	PageInfocompressionKind compressPages,
	PageInfoencryptionKind pageEncryption = PageInfoencryptionKind.noEncryption,
	bool isAbackupLocation = false,
	DatabaseLocation backupOfOrForLocation = null
)

Parameters

inHost
Type: SystemString
Hostname of the computer with the DatabaseLocation directory.
dir
Type: SystemString
The full path of the directory
dbStartNum
Type: SystemUInt32
The first Database Id number for this location
dbEndNum
Type: SystemUInt32
The last Database Id number for this location.
session
Type: VelocityDb.SessionSessionBase
The active session used for creating the location.
compressPages
Type: VelocityDbPageInfocompressionKind
Compress Database pages in this location?
pageEncryption (Optional)
Type: VelocityDbPageInfoencryptionKind
Specify what kind of Page encryption to use (if any)
isAbackupLocation (Optional)
Type: SystemBoolean
Is this location a backup location for another location?
backupOfOrForLocation (Optional)
Type: VelocityDbDatabaseLocation
The other location being backed up or the location contain the backups
See Also