Method GetRepository
GetRepository(SettingsScope)
Find a settings repository that matches the requested scope.
Declaration
public ISettingsRepository GetRepository(SettingsScope scope)
Parameters
| Type | Name | Description |
|---|---|---|
| SettingsScope | scope | The scope of the settings repository to match. |
Returns
| Type | Description |
|---|---|
| ISettingsRepository | An ISettingsRepository instance that is implementing the requested scope. May return null if no matching repository is found. |
GetRepository(SettingsScope, string)
Find a settings repository that matches the requested scope and name.
Declaration
public ISettingsRepository GetRepository(SettingsScope scope, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| SettingsScope | scope | The scope of the settings repository to match. |
| string | name | The name of the ISettingsRepository to match. |
Returns
| Type | Description |
|---|---|
| ISettingsRepository | An ISettingsRepository instance that is implementing the requested scope, and matches name. May return null if no matching repository is found. |