Interface IConfigManipulator
Namespace: Umbraco.Cms.Core.Configuration
Assembly: Umbraco.Core.dll
Syntax
public interface IConfigManipulatorMethods
View SourceRemoveConnectionStringAsync()
Removes the connection string from the configuration file
Declaration
Task RemoveConnectionStringAsync()Returns
| Type | Description | 
|---|---|
| Task | 
SaveConfigValueAsync(String, Object)
Updates a value in the configuration file.
Declaration
Task SaveConfigValueAsync(string itemPath, object value)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | itemPath | Path to update, uses : as the separator. | 
| System.Object | value | The new value. | 
Returns
| Type | Description | 
|---|---|
| Task | 
SaveConnectionStringAsync(String, String)
Saves the connection string to the configuration file
Declaration
Task SaveConnectionStringAsync(string connectionString, string providerName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | connectionString | |
| System.String | providerName | 
Returns
| Type | Description | 
|---|---|
| Task | 
SaveDisableRedirectUrlTrackingAsync(Boolean)
Updates the disableRedirectUrlTracking value in the configuration file.
Declaration
Task SaveDisableRedirectUrlTrackingAsync(bool disable)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | disable | The value to save. | 
Returns
| Type | Description | 
|---|---|
| Task | 
SetGlobalIdAsync(String)
Sets the global id in the configuration file.
Declaration
Task SetGlobalIdAsync(string id)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | id | The ID to save. | 
Returns
| Type | Description | 
|---|---|
| Task |