Property | Type | Description | |
---|---|---|---|
StorageFile | string | ||
StoragePassword | string |
Property | Type | Description | |
---|---|---|---|
StoragePasswordArray | byte[] |
Method | 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.
|
Method | 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
|
Method | 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. |
return | string |
protected abstract SaveData ( byte data ) : void | ||
data | byte | Unencrypted data |
return | void |
public SetValue ( string key, string value ) : bool | ||
key | string | Key. |
value | string | Value. |
return | bool |