ConfigurationElement.SerializeToXmlElement(XmlWriter, String) メソッド

定義

派生クラスに実装されている場合、この構成要素の外側のタグを構成ファイルに書き込みます。Writes the outer tags of this configuration element to the configuration file when implemented in a derived class.

protected:
 virtual bool SerializeToXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName);
protected public:
 virtual bool SerializeToXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName);
protected virtual bool SerializeToXmlElement (System.Xml.XmlWriter writer, string elementName);
protected internal virtual bool SerializeToXmlElement (System.Xml.XmlWriter writer, string elementName);
abstract member SerializeToXmlElement : System.Xml.XmlWriter * string -> bool
override this.SerializeToXmlElement : System.Xml.XmlWriter * string -> bool
Protected Overridable Function SerializeToXmlElement (writer As XmlWriter, elementName As String) As Boolean
Protected Friend Overridable Function SerializeToXmlElement (writer As XmlWriter, elementName As String) As Boolean

パラメーター

writer
XmlWriter

構成ファイルへの書き込みを行う XmlWriterThe XmlWriter that writes to the configuration file.

elementName
String

書き込まれる ConfigurationElement の名前。The name of the ConfigurationElement to be written.

戻り値

書き込みが成功した場合は true。それ以外の場合は falsetrue if writing was successful; otherwise, false.

例外

要素に複数の子要素があります。The element has multiple child elements.

注釈

SerializeToXmlElement メソッドは、シリアル化中に Unmerge メソッドの呼び出しの後に呼び出されます。The SerializeToXmlElement method is called after the call to the Unmerge method during serialization. SerializeToXmlElement メソッドは、要素の開始タグと終了タグの間の構成要素の内容を書き込みます。The SerializeToXmlElement method writes out the contents of the configuration element between the beginning and ending tags of the element. SerializeToXmlElement をオーバーライドして、カスタムのシリアル化メソッドを提供します。Override SerializeToXmlElement to provide a custom serialization method.

適用対象