PwGroup newGroup = new PwGroup(true, true); newGroup.Name = "New Group";
PwGroup parentGroup = GetParentGroup(); // get an existing group PwGroup childGroup = new PwGroup(true, true); childGroup.Name = "Child Group"; parentGroup.AddGroup(childGroup);
PwGroup matchingGroup = FindGroupByName("Group Name");In all of these examples, the PwGroup class is being used to manipulate and work with password groups in a KeePass database. The KeePassLib.Security namespace is part of the KeePass Password Safe package, which is a free, open-source password manager that can be downloaded and used on Windows, Mac, and Linux platforms.