C# Class GSF.Configuration.CategorizedSettingsSection

Represents a section in the config file with one or more CategorizedSettingsElementCollection representing categories, each containing one or more CategorizedSettingsElement objects representing settings under a specific category.
Inheritance: System.Configuration.ConfigurationSection
Afficher le fichier Open project: GridProtectionAlliance/gsf

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CategorizedSettingsSection ( ) : System

Creates a new CategorizedSettingsSection.

Remove ( string name ) : void

Removes the specified category name including its associated settings.

SetCryptoKey ( string cryptoKey ) : void

Sets the key to be used for encrypting and decrypting setting values.

this ( string name ) : GSF.Configuration.CategorizedSettingsElementCollection

Gets the CategorizedSettingsElementCollection object representing settings under the specified category name.

Méthodes protégées

Méthode Description
DeserializeSection ( XmlReader reader ) : void

Reads XML from the configuration file.

SerializeSection ( ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode ) : string

Creates an XML string containing an unmerged view of the ConfigurationSection object as a single section to write to a file.

Method Details

CategorizedSettingsSection() public méthode

Creates a new CategorizedSettingsSection.
public CategorizedSettingsSection ( ) : System
Résultat System

DeserializeSection() protected méthode

Reads XML from the configuration file.
protected DeserializeSection ( XmlReader reader ) : void
reader XmlReader The object, which reads from the configuration file.
Résultat void

Remove() public méthode

Removes the specified category name including its associated settings.
is null or empty string.
public Remove ( string name ) : void
name string Name of the category to be removed.
Résultat void

SerializeSection() protected méthode

Creates an XML string containing an unmerged view of the ConfigurationSection object as a single section to write to a file.
protected SerializeSection ( ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode ) : string
parentElement System.Configuration.ConfigurationElement The instance to use as the parent when performing the un-merge.
name string The name of the section to create.
saveMode ConfigurationSaveMode The instance to use when writing to a string.
Résultat string

SetCryptoKey() public méthode

Sets the key to be used for encrypting and decrypting setting values.
public SetCryptoKey ( string cryptoKey ) : void
cryptoKey string New crypto key.
Résultat void

this() public méthode

Gets the CategorizedSettingsElementCollection object representing settings under the specified category name.
is null or empty string.
public this ( string name ) : GSF.Configuration.CategorizedSettingsElementCollection
name string Name of the category whose settings are to be retrieved.
Résultat GSF.Configuration.CategorizedSettingsElementCollection