ConfigurationSectionSerializeSection Method
 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Syntax
protected internal virtual string SerializeSection(
	ConfigurationElement parentElement,
	string name,
	ConfigurationSaveMode saveMode
)
public protected:
virtual String^ SerializeSection(
	ConfigurationElement^ parentElement,
	String^ name,
	ConfigurationSaveMode saveMode
)
abstract SerializeSection : 
        parentElement:ConfigurationElement *
        name:string *
        saveMode:ConfigurationSaveMode -> string
override SerializeSection : 
        parentElement:ConfigurationElement *
        name:string *
        saveMode:ConfigurationSaveMode -> string
Protected Friend Overridable Function SerializeSection (
	parentElement As ConfigurationElement,
	name As String,
	saveMode As ConfigurationSaveMode
) As String

Parameters

parentElement
Type:

The ConfigurationElement instance to use as the parent when performing the un-merge.

name
Type:

The name of the section to create.

saveMode
Type:

The ConfigurationSaveMode instance to use when writing to a string.

Return Value

Type:

An XML string containing an unmerged view of the ConfigurationSection object.

Remarks

Serialization refers to the transformation of real-time data, contained in an object, to XML format and its storage to a configuration file.

Version Information
.NET Framework
Available since 2.0
Return to top