コード例 #1
0
        public void AccessingALockedKeyringPromptsToUnlock()
        {
            string keyringName = "akeyring";

            Ring.CreateKeyring(keyringName, "password");

            try {
                Ring.Lock(keyringName);
                Ring.CreateItem(keyringName, ItemType.Note, "Random note", new Hashtable(), "reallysecret", false);
            } finally {
                Ring.DeleteKeyring(keyringName);
            }
        }