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

    RemoveConnectionString()

    Declaration
    void RemoveConnectionString()
    View Source

    RemoveConnectionStringAsync()

    Removes the connection string from the configuration file

    Declaration
    virtual Task RemoveConnectionStringAsync()
    Returns
    Type Description
    Task
    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
    Type Description
    Task
    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
    Type Description
    Task
    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
    Type Description
    Task
    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
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • RemoveConnectionString()
      • RemoveConnectionStringAsync()
      • SaveConfigValue(String, Object)
      • SaveConfigValueAsync(String, Object)
      • SaveConnectionString(String, String)
      • SaveConnectionStringAsync(String, String)
      • SaveDisableRedirectUrlTracking(Boolean)
      • SaveDisableRedirectUrlTrackingAsync(Boolean)
      • SetGlobalId(String)
      • SetGlobalIdAsync(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX