XmlSerializationWriter.WriteElementLiteral(XmlNode, String, String, Boolean, Boolean) Método
Definição
protected:
void WriteElementLiteral(System::Xml::XmlNode ^ node, System::String ^ name, System::String ^ ns, bool isNullable, bool any);
protected void WriteElementLiteral (System.Xml.XmlNode? node, string name, string? ns, bool isNullable, bool any);
protected void WriteElementLiteral (System.Xml.XmlNode node, string name, string ns, bool isNullable, bool any);
member this.WriteElementLiteral : System.Xml.XmlNode * string * string * bool * bool -> unit
Protected Sub WriteElementLiteral (node As XmlNode, name As String, ns As String, isNullable As Boolean, any As Boolean)
Parâmetros
- node
- XmlNode
O nó XML a ser gravado, possivelmente um filho do elemento XML.The XML node to write, possibly a child XML element.
- name
- String
O nome local do elemento XML pai a ser gravado.The local name of the parent XML element to write.
- ns
- String
O namespace do elemento XML pai a ser gravado.The namespace of the parent XML element to write.
- isNullable
- Boolean
true para gravar um atributo xsi:nil='true' se o objeto a ser serializado for null; caso contrário, false.true to write an xsi:nil='true' attribute if the object to serialize is null; otherwise, false.
- any
- Boolean
true para indicar que o nó, se for um elemento XML, cumpre uma declaração do elemento any de um esquema XML; caso contrário, false.true to indicate that the node, if an XML element, adheres to an XML Schema any element declaration; otherwise, false.
Comentários
Os membros protegidos do XmlSerializationWriter são destinados para uso somente por classes derivadas que são usadas internamente dentro da infraestrutura de serialização de .NET Framework XML.The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.
O WriteElementLiteral método é chamado somente ao gravar XML literal que pode ser definido em um documento de esquema XML.The WriteElementLiteral method is called only when writing literal XML that can be defined in an XML Schema document.