ConfigurationElement.SerializeToXmlElement(XmlWriter, String) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Escreve as etiquetas exteriores deste elemento de configuração no ficheiro de configuração quando implementado numa classe derivada.
protected public:
virtual bool SerializeToXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName);
protected:
virtual bool SerializeToXmlElement(System::Xml::XmlWriter ^ writer, System::String ^ elementName);
protected internal virtual bool SerializeToXmlElement(System.Xml.XmlWriter writer, string elementName);
protected 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 Friend Overridable Function SerializeToXmlElement (writer As XmlWriter, elementName As String) As Boolean
Protected Overridable Function SerializeToXmlElement (writer As XmlWriter, elementName As String) As Boolean
Parâmetros
- elementName
- String
O nome do ConfigurationElement que será escrito.
Devoluções
true se a escrita fosse bem-sucedida; caso contrário, false.
Exceções
O elemento tem múltiplos elementos filhos.
Observações
O SerializeToXmlElement método é chamado após a chamada ao Unmerge método durante a serialização. O SerializeToXmlElement método escreve o conteúdo do elemento de configuração entre as etiquetas de início e fim do elemento. Override SerializeToXmlElement para fornecer um método de serialização personalizado.