Bagikan melalui


ConfigurationSection.SerializeSection Metode

Definisi

Membuat string XML yang berisi tampilan ConfigurationSection objek yang tidak tergabung sebagai satu bagian untuk menulis ke file.

protected:
 virtual System::String ^ SerializeSection(System::Configuration::ConfigurationElement ^ parentElement, System::String ^ name, System::Configuration::ConfigurationSaveMode saveMode);
protected public:
 virtual System::String ^ SerializeSection(System::Configuration::ConfigurationElement ^ parentElement, System::String ^ name, System::Configuration::ConfigurationSaveMode saveMode);
protected virtual string SerializeSection (System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode);
protected internal virtual string SerializeSection (System.Configuration.ConfigurationElement parentElement, string name, System.Configuration.ConfigurationSaveMode saveMode);
abstract member SerializeSection : System.Configuration.ConfigurationElement * string * System.Configuration.ConfigurationSaveMode -> string
override this.SerializeSection : System.Configuration.ConfigurationElement * string * System.Configuration.ConfigurationSaveMode -> string
Protected Overridable Function SerializeSection (parentElement As ConfigurationElement, name As String, saveMode As ConfigurationSaveMode) As String
Protected Friend Overridable Function SerializeSection (parentElement As ConfigurationElement, name As String, saveMode As ConfigurationSaveMode) As String

Parameter

parentElement
ConfigurationElement

Instans ConfigurationElement yang digunakan sebagai induk saat melakukan un-merge.

name
String

Nama bagian yang akan dibuat.

saveMode
ConfigurationSaveMode

Instans ConfigurationSaveMode yang digunakan saat menulis ke string.

Mengembalikan

String XML yang berisi tampilan objek yang ConfigurationSection tidak tergabung.

Keterangan

Serialisasi mengacu pada transformasi data real-time, yang terkandung dalam objek, ke format XML dan penyimpanannya ke file konfigurasi.

Berlaku untuk