C# 클래스 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.
상속: System.Configuration.ConfigurationSection
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

CategorizedSettingsSection() 공개 메소드

Creates a new CategorizedSettingsSection.
public CategorizedSettingsSection ( ) : System
리턴 System

DeserializeSection() 보호된 메소드

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

Remove() 공개 메소드

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.
리턴 void

SerializeSection() 보호된 메소드

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.
리턴 string

SetCryptoKey() 공개 메소드

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

this() 공개 메소드

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.
리턴 GSF.Configuration.CategorizedSettingsElementCollection