DatabaseConnectionGetFileName Method |
Returns the filename associated with the database.
Namespace: SQLitePCL.prettyAssembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax public static string GetFileName(
this SQLiteDatabaseConnection This,
string database
)
[<ExtensionAttribute>]
static member GetFileName :
This : SQLiteDatabaseConnection *
database : string -> string
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:
StringThe 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 Exception | Condition |
---|
InvalidOperationException | If the database is not attached, temporary, or in memory. |
See Also