EditableXmlConfigHelper Class

Definition

Provides methods for editing configuration settings in the user's project.

public ref class EditableXmlConfigHelper abstract : Microsoft::VisualStudio::ConnectedServices::XmlConfigHelper
[Windows::Foundation::Metadata::WebHostHidden]
public ref class EditableXmlConfigHelper abstract : Microsoft::VisualStudio::ConnectedServices::XmlConfigHelper
[Windows::Foundation::Metadata::WebHostHidden]
class EditableXmlConfigHelper abstract : Microsoft::VisualStudio::ConnectedServices::XmlConfigHelper
public abstract class EditableXmlConfigHelper : Microsoft.VisualStudio.ConnectedServices.XmlConfigHelper
type EditableXmlConfigHelper = class
    inherit XmlConfigHelper
Public MustInherit Class EditableXmlConfigHelper
Inherits XmlConfigHelper
Inheritance
EditableXmlConfigHelper

Remarks

The Save method must be called to save any changes.

This class does not preserve whitespace in the appSettings section.

Constructors

EditableXmlConfigHelper()

This constructor supports unit testing your extension and is not intended to be used directly from your production code.

Properties

Configuration

Gets the Configuration object that can be used to inspect the configuration settings.

(Inherited from XmlConfigHelper)

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from XmlConfigHelper)
Dispose(Boolean)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from XmlConfigHelper)
GetAppSetting(String)

Gets the string value of the setting with the specified key in the appSettings config section with the specified key and value.

(Inherited from XmlConfigHelper)
IsPrefixUsedInAppSettings(String)

Gets a value indicating whether an appSetting key exists with the specified keyPrefix.

(Inherited from XmlConfigHelper)
Save()

Writes the configuration settings contained within this Configuration object to the current XML configuration file.

SetAppSetting(String, String, String)

Ensures there is a key-value pair in the appSettings config section with the specified key and value.

Applies to