SecurityElementBase.SerializeToXmlElement(XmlWriter, String) Method

Definition

Writes the outer tags of this configuration element to the configuration file.

protected:
 override bool SerializeToXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName);
protected override bool SerializeToXmlElement (System.Xml.XmlWriter writer, string elementName);
override this.SerializeToXmlElement : System.Xml.XmlWriter * string -> bool
Protected Overrides Function SerializeToXmlElement (writer As XmlWriter, elementName As String) As Boolean

Parameters

writer
XmlWriter

The XmlWriter that is used to write to the configuration file.

elementName
String

The name of the ConfigurationElement to be written.

Returns

true if the serialization is successful; otherwise, false.

Applies to