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 的名称。

返回

Boolean

如果序列化成功,则为 true;否则为 false

适用于