共用方式為


SecurityElementBase.SerializeToXmlElement(XmlWriter, String) 方法

定義

將這個組態項目的外部標記寫入組態檔。

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

參數

writer
XmlWriter

用於寫入至組態檔的 XmlWriter

elementName
String

要寫入的 ConfigurationElement 名稱。

傳回

如果序列化成功,則為 true,否則為 false

適用於