KeePassDatabase
Disposable wrapper around a PwDatabase instance.
public sealed class KeePassDatabase : IDisposable
1. Properties
1.1. IsOpen
Whether the database is currently open.
public bool IsOpen { get; }
2. Methods
2.1. Dispose()
public void Dispose()
3. Extension Methods
3.1. GetAllEntries()
Gets all entries from the database root group (including subgroups).
public static IEnumerable<KeePassEntry> GetAllEntries(this KeePassDatabase database)
| Name | Type | Description |
|---|---|---|
database |
KeePassDatabase |
Returns: IEnumerable<KeePassEntry>
3.2. GetEntry(string)
Finds a single entry by its title (case-sensitive). Returns null if not found.
public static KeePassEntry GetEntry(this KeePassDatabase database, string title)
| Name | Type | Description |
|---|---|---|
database |
KeePassDatabase |
|
title |
string |
Returns: KeePassEntry
3.3. GetGroupEntries(string)
Gets all entries belonging to a specific group name.
public static IEnumerable<KeePassEntry> GetGroupEntries(this KeePassDatabase database, string group)
| Name | Type | Description |
|---|---|---|
database |
KeePassDatabase |
|
group |
string |
Returns: IEnumerable<KeePassEntry>