Method DeleteKey
DeleteKey<T>(string, SettingsScope)
Remove a key value pair from a settings repository.
Declaration
public void DeleteKey<T>(string key, SettingsScope scope = SettingsScope.Project)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to remove. |
Settings |
scope | Which scope should be searched for matching key. |
Type Parameters
Name | Description |
---|---|
T | The type that this key is pointing to. |
DeleteKey<T>(string, string, SettingsScope)
Remove a key value pair from a settings repository.
Declaration
public void DeleteKey<T>(string key, string repositoryName, SettingsScope scope = SettingsScope.Project)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to remove. |
string | repositoryName | The repository name to match. |
Settings |
scope | Which scope should be searched for matching key. |
Type Parameters
Name | Description |
---|---|
T | The type that this key is pointing to. |
DeleteKey<T, K>(string, string)
Remove a key value pair from a settings repository.
Declaration
public void DeleteKey<T, K>(string key, string repositoryName = null) where K : ISettingsRepository
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to remove. |
string | repositoryName | If provided, only repositories with a matching name will be searched for the key. |
Type Parameters
Name | Description |
---|---|
T | The type that this key is pointing to. |
K | Only repositories of type K will be searched for matching keys. |