Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IConfigManipulator

    Namespace: Umbraco.Cms.Core.Configuration
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IConfigManipulator

    Methods

    View Source

    RemoveConnectionStringAsync()

    Removes the connection string from the configuration file

    Declaration
    Task RemoveConnectionStringAsync()
    Returns
    Type Description
    Task
    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
    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
    View Source

    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
    View Source

    SaveDisableRedirectUrlTrackingAsync(Boolean)

    Updates the disableRedirectUrlTracking value in the configuration file. Will create the node if it does not already exist.

    Declaration
    Task SaveDisableRedirectUrlTrackingAsync(bool disable)
    Parameters
    Type Name Description
    System.Boolean disable

    The value to save.

    Returns
    Type Description
    Task
    View Source

    SetGlobalIdAsync(String)

    Sets the global id in the configuration file. Will create the node if it does not already exist.

    Declaration
    Task SetGlobalIdAsync(string id)
    Parameters
    Type Name Description
    System.String id

    The ID to save.

    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX