Свойство | Type | Description | |
---|---|---|---|
StorageFile | string | ||
StoragePassword | string |
Свойство | Type | Description | |
---|---|---|---|
StoragePasswordArray | byte[] |
Méthode | Description | |
---|---|---|
DeleteKey ( string key ) : bool |
Deletes the key and corresponding value from the storage
|
|
GetValue ( string key, string defaultValue = null ) : string |
Retrieves the value from storage. If value with the given key does not exist, returns default value
|
|
HasKey ( string key ) : bool |
Determines whether specified key exists in the storage
|
|
SetValue ( string key, string value ) : bool |
Sets the value for the given key. If value exists, overwrites it Else creates new entry. Does not accept null value.
|
Méthode | Description | |
---|---|---|
LoadData ( ) : byte[] |
Derived classes must implement this method. Derived class will read the data from the storage, decrypt it and return clear data.
|
|
SaveData ( byte data ) : void |
Derived classes must implement this method. Derived class will encrypt the data and save it.
|
|
WinSecureStorageBase ( ) : System |
Default constructor, validates settings, loads the store
|
Méthode | Description | |
---|---|---|
LoadFromStorage ( ) : void |
Loads the dictionary from storge
|
|
SaveToStorage ( ) : void |
method to encrypt and save dictionary to storage
|
public GetValue ( string key, string defaultValue = null ) : string | ||
key | string | Key. |
defaultValue | string | Default value. |
Résultat | string |
protected abstract SaveData ( byte data ) : void | ||
data | byte | Unencrypted data |
Résultat | void |
public SetValue ( string key, string value ) : bool | ||
key | string | Key. |
value | string | Value. |
Résultat | bool |
protected WinSecureStorageBase ( ) : System | ||
Résultat | System |