Click or drag to resize
DatabaseConnectionGetFileName Method
Returns the filename associated with the database.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static string GetFileName(
	this SQLiteDatabaseConnection This,
	string database
)

Parameters

This
Type: SQLitePCL.prettySQLiteDatabaseConnection
The database connection.
database
Type: SystemString
The database name. The main database file has the name "main".

Return Value

Type: String
The attached database's filename.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SQLiteDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
InvalidOperationExceptionIf the database is not attached, temporary, or in memory.
See Also