PasswordDictionary

PasswordDictionary class

Represents a dictionary of document passwords.

public class PasswordDictionary : DictionaryBase, IEnumerable<string>

Properties

Name Description
Count { get; } Gets the number of elements contained in the dictionary.
override DictionaryType { get; } Gets the dictionary type.

Methods

Name Description
Add(string, string) Adds a password for a document to the dictionary.
override Clear() Removes all passwords from this PasswordDictionary object.
Contains(string) Determines whether the dictionary contains a password for the specified document.
ExportDictionary(string) Exports the dictionary to a file with the specified name.
GetEnumerator() Returns an enumerator that iterates through the collection.
GetPassword(string) Gets the password for the file.
ImportDictionary(string) Imports a dictionary from the specified file.
Remove(string) Removes a password of the specified document from the dictionary.

Remarks

Learn more

See Also