View Source
Interface IConfigManipulator
Assembly: Umbraco.Core.dll
Syntax
public interface IConfigManipulator
Methods
View Source
RemoveConnectionString()
Declaration
void RemoveConnectionString()
View Source
RemoveConnectionStringAsync()
Removes the connection string from the configuration file
Declaration
virtual Task RemoveConnectionStringAsync()
Returns
View Source
SaveConfigValue(String, Object)
Declaration
void SaveConfigValue(string itemPath, object value)
Parameters
| Type |
Name |
Description |
| System.String |
itemPath |
|
| System.Object |
value |
|
View Source
SaveConfigValueAsync(String, Object)
Updates a value in the configuration file.
Will only update an existing key in the configuration file, if it does not exists nothing is saved
Declaration
virtual 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
View Source
SaveConnectionString(String, String)
Declaration
void SaveConnectionString(string connectionString, string providerName)
Parameters
| Type |
Name |
Description |
| System.String |
connectionString |
|
| System.String |
providerName |
|
View Source
SaveConnectionStringAsync(String, String)
Saves the connection string to the configuration file
Declaration
virtual Task SaveConnectionStringAsync(string connectionString, string providerName)
Parameters
| Type |
Name |
Description |
| System.String |
connectionString |
|
| System.String |
providerName |
|
Returns
View Source
SaveDisableRedirectUrlTracking(Boolean)
Declaration
void SaveDisableRedirectUrlTracking(bool disable)
Parameters
| Type |
Name |
Description |
| System.Boolean |
disable |
|
View Source
SaveDisableRedirectUrlTrackingAsync(Boolean)
Updates the disableRedirectUrlTracking value in the configuration file.
Will create the node if it does not already exist.
Declaration
virtual Task SaveDisableRedirectUrlTrackingAsync(bool disable)
Parameters
| Type |
Name |
Description |
| System.Boolean |
disable |
The value to save.
|
Returns
View Source
SetGlobalId(String)
Declaration
void SetGlobalId(string id)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
View Source
SetGlobalIdAsync(String)
Sets the global id in the configuration file.
Will create the node if it does not already exist.
Declaration
virtual Task SetGlobalIdAsync(string id)
Parameters
| Type |
Name |
Description |
| System.String |
id |
The ID to save.
|
Returns