ConfigurationSection.SerializeSection メソッド

定義

ファイルに書き込む 1 つのセクションとして、ConfigurationSection オブジェクトのアンマージされたビューを含む XML 文字列を作成します。

C#
protected virtual string SerializeSection (System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode);
C#
protected internal virtual string SerializeSection (System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode);

パラメーター

parentElement
ConfigurationElement

アンマージを実行する場合に親として使用する ConfigurationElement インスタンス。

name
String

作成するセクションの名前。

saveMode
ConfigurationSaveMode

文字列に書き込むときに使用する ConfigurationSaveMode インスタンス。

戻り値

ConfigurationSection オブジェクトのアンマージされたビューを含む XML 文字列。

注釈

シリアル化とは、オブジェクトに含まれるリアルタイム データを XML 形式に変換し、そのストレージを構成ファイルに変換することを指します。

適用対象

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9