ConfigurationSection.SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) ConfigurationSection.SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) ConfigurationSection.SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) ConfigurationSection.SerializeSection(ConfigurationElement, String, ConfigurationSaveMode) Method

Definición

Crea una cadena XML que contiene una vista separada del objeto ConfigurationSection como una sección única para escribir en un archivo.Creates an XML string containing an unmerged view of the ConfigurationSection object as a single section to write to a file.

protected public:
 virtual System::String ^ SerializeSection(System::Configuration::ConfigurationElement ^ parentElement, System::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 Friend Overridable Function SerializeSection (parentElement As ConfigurationElement, name As String, saveMode As ConfigurationSaveMode) As String

Parámetros

parentElement
ConfigurationElement ConfigurationElement ConfigurationElement ConfigurationElement

Instancia de ConfigurationElement que se va a utilizar como elemento primario al realizar la separación.The ConfigurationElement instance to use as the parent when performing the un-merge.

name
String String String String

Nombre de la sección que se va a crear.The name of the section to create.

saveMode
ConfigurationSaveMode ConfigurationSaveMode ConfigurationSaveMode ConfigurationSaveMode

Instancia de ConfigurationSaveMode que se va a usar al escribir en una cadena.The ConfigurationSaveMode instance to use when writing to a string.

Devoluciones

Cadena XML que contiene la vista separada del objeto ConfigurationSection.An XML string containing an unmerged view of the ConfigurationSection object.

Comentarios

La serialización hace referencia a la transformación de datos en tiempo real, contenidos en un objeto, en formato XML y su almacenamiento en un archivo de configuración.Serialization refers to the transformation of real-time data, contained in an object, to XML format and its storage to a configuration file.

Se aplica a