XCData Classe
Definição
Representa um nó de texto que contém CDATA.Represents a text node that contains CDATA.
public ref class XCData : System::Xml::Linq::XText
public class XCData : System.Xml.Linq.XText
type XCData = class
inherit XText
Public Class XCData
Inherits XText
- Herança
Comentários
Uma seção XML CDATA permite armazenar quase todas as cadeias de caracteres arbitrárias como o conteúdo de um elemento XML.An XML CDATA section allows you to store almost any arbitrary string as the contents of an XML element. Essa classe representa o conceito XML de um nó de texto CDATA.This class represents the XML concept of a CDATA text node.
Essa classe deriva de XText , que representa o texto XML.This class derives from XText, which represents XML text. As seções CDATA são casos especiais de texto XML.CDATA sections are special cases of XML text.
Construtores
| XCData(String) |
Inicializa uma nova instância da classe XCData.Initializes a new instance of the XCData class. |
| XCData(XCData) |
Inicializa uma nova instância da classe XCData.Initializes a new instance of the XCData class. |
Propriedades
| BaseUri |
Obtém o URI de base para este XObject.Gets the base URI for this XObject. (Herdado de XObject) |
| Document |
Obtém o XDocument para este XObject.Gets the XDocument for this XObject. (Herdado de XObject) |
| NextNode |
Obtém o próximo nó irmão desse nó.Gets the next sibling node of this node. (Herdado de XNode) |
| NodeType |
Obtém o tipo de nó para este nó.Gets the node type for this node. |
| Parent |
Obtém o pai XElement desse XObject.Gets the parent XElement of this XObject. (Herdado de XObject) |
| PreviousNode |
Obtém o nó irmão anterior desse nó.Gets the previous sibling node of this node. (Herdado de XNode) |
| Value |
Obtém ou define o valor deste nó.Gets or sets the value of this node. (Herdado de XText) |
Métodos
| AddAfterSelf(Object) |
Adiciona o conteúdo especificado imediatamente após esse nó.Adds the specified content immediately after this node. (Herdado de XNode) |
| AddAfterSelf(Object[]) |
Adiciona o conteúdo especificado imediatamente após esse nó.Adds the specified content immediately after this node. (Herdado de XNode) |
| AddAnnotation(Object) |
Adiciona um objeto à lista de anotação deste XObject.Adds an object to the annotation list of this XObject. (Herdado de XObject) |
| AddBeforeSelf(Object) |
Adiciona o conteúdo especificado imediatamente antes deste nó.Adds the specified content immediately before this node. (Herdado de XNode) |
| AddBeforeSelf(Object[]) |
Adiciona o conteúdo especificado imediatamente antes deste nó.Adds the specified content immediately before this node. (Herdado de XNode) |
| Ancestors() |
Retorna uma coleção dos elementos ancestrais deste nó.Returns a collection of the ancestor elements of this node. (Herdado de XNode) |
| Ancestors(XName) |
Retorna uma coleção filtrada dos elementos ancestrais deste nó.Returns a filtered collection of the ancestor elements of this node. Somente os elementos que têm um XName correspondente são incluídos na coleção.Only elements that have a matching XName are included in the collection. (Herdado de XNode) |
| Annotation(Type) |
Obtém o primeiro objeto de anotação do tipo especificado desse XObject.Gets the first annotation object of the specified type from this XObject. (Herdado de XObject) |
| Annotation<T>() |
Obtém o primeiro objeto de anotação do tipo especificado desse XObject.Gets the first annotation object of the specified type from this XObject. (Herdado de XObject) |
| Annotations(Type) |
Obtém uma coleção de anotações do tipo especificado para este XObject.Gets a collection of annotations of the specified type for this XObject. (Herdado de XObject) |
| Annotations<T>() |
Obtém uma coleção de anotações do tipo especificado para este XObject.Gets a collection of annotations of the specified type for this XObject. (Herdado de XObject) |
| CreateReader() |
Cria um XmlReader para este nó.Creates an XmlReader for this node. (Herdado de XNode) |
| CreateReader(ReaderOptions) |
Cria um XmlReader com as opções especificadas pelo parâmetro |
| ElementsAfterSelf() |
Retorna uma coleção dos elementos irmão após esse nó, na ordem do documento.Returns a collection of the sibling elements after this node, in document order. (Herdado de XNode) |
| ElementsAfterSelf(XName) |
Retorna uma coleção filtrada dos elementos irmãos após esse nó, na ordem do documento.Returns a filtered collection of the sibling elements after this node, in document order. Somente os elementos que têm um XName correspondente são incluídos na coleção.Only elements that have a matching XName are included in the collection. (Herdado de XNode) |
| ElementsBeforeSelf() |
Retorna uma coleção dos elementos irmãos antes desse nó, na ordem do documento.Returns a collection of the sibling elements before this node, in document order. (Herdado de XNode) |
| ElementsBeforeSelf(XName) |
Retorna uma coleção filtrada dos elementos irmãos antes desse nó, na ordem do documento.Returns a filtered collection of the sibling elements before this node, in document order. Somente os elementos que têm um XName correspondente são incluídos na coleção.Only elements that have a matching XName are included in the collection. (Herdado de XNode) |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| IsAfter(XNode) |
Determina se o nó atual aparece depois de um nó especificado com relação à ordem do documento.Determines if the current node appears after a specified node in terms of document order. (Herdado de XNode) |
| IsBefore(XNode) |
Determina se o nó atual aparece antes de um nó especificado com relação à ordem do documento.Determines if the current node appears before a specified node in terms of document order. (Herdado de XNode) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| NodesAfterSelf() |
Retorna uma coleção de nós irmãos após esse nó, na ordem do documento.Returns a collection of the sibling nodes after this node, in document order. (Herdado de XNode) |
| NodesBeforeSelf() |
Retorna uma coleção de nós irmãos antes deste nó, na ordem do documento.Returns a collection of the sibling nodes before this node, in document order. (Herdado de XNode) |
| Remove() |
Remove este nó de seu pai.Removes this node from its parent. (Herdado de XNode) |
| RemoveAnnotations(Type) |
Remove as anotações do tipo especificado deste XObject.Removes the annotations of the specified type from this XObject. (Herdado de XObject) |
| RemoveAnnotations<T>() |
Remove as anotações do tipo especificado deste XObject.Removes the annotations of the specified type from this XObject. (Herdado de XObject) |
| ReplaceWith(Object) |
Substitui esse nó pelo conteúdo especificado.Replaces this node with the specified content. (Herdado de XNode) |
| ReplaceWith(Object[]) |
Substitui esse nó pelo conteúdo especificado.Replaces this node with the specified content. (Herdado de XNode) |
| ToString() |
Retorna o XML recuado para este nó.Returns the indented XML for this node. (Herdado de XNode) |
| ToString(SaveOptions) |
Retorna o XML para esse nó, com a opção de desabilitar a formatação.Returns the XML for this node, optionally disabling formatting. (Herdado de XNode) |
| WriteTo(XmlWriter) |
Grava este objeto CDATA em um XmlWriter.Writes this CDATA object to an XmlWriter. |
| WriteToAsync(XmlWriter, CancellationToken) |
Grava esta XCData no XmlWriter determinado.Writes this XCData to the given XmlWriter. |
| WriteToAsync(XmlWriter, CancellationToken) |
Grava assincronamente esta XText no XmlWriter especificado.Asynchronously writes this XText to the specified XmlWriter. (Herdado de XText) |
Eventos
| Changed |
Gerado quando esse XObject ou qualquer um de seus descendentes foi alterado.Raised when this XObject or any of its descendants have changed. (Herdado de XObject) |
| Changing |
Acionado quando esse XObject ou um de seus descendentes está prestes a mudar.Raised when this XObject or any of its descendants are about to change. (Herdado de XObject) |
Implantações explícitas de interface
| IXmlLineInfo.HasLineInfo() |
Obtém um valor que indica se este XObject tem informações de linha ou não.Gets a value indicating whether or not this XObject has line information. (Herdado de XObject) |
| IXmlLineInfo.LineNumber |
Obtém o número de linha que o XmlReader subjacente relatou para este XObject.Gets the line number that the underlying XmlReader reported for this XObject. (Herdado de XObject) |
| IXmlLineInfo.LinePosition |
Obtém a posição de linha que o XmlReader subjacente relatou para este XObject.Gets the line position that the underlying XmlReader reported for this XObject. (Herdado de XObject) |
Métodos de Extensão
| CreateNavigator(XNode) |
Cria um XPathNavigator para um XNode.Creates an XPathNavigator for an XNode. |
| CreateNavigator(XNode, XmlNameTable) |
Cria um XPathNavigator para um XNode.Creates an XPathNavigator for an XNode. O XmlNameTable habilita o processamento mais eficiente de expressão XPath.The XmlNameTable enables more efficient XPath expression processing. |
| XPathEvaluate(XNode, String) |
Avalia uma expressão XPath.Evaluates an XPath expression. |
| XPathEvaluate(XNode, String, IXmlNamespaceResolver) |
Avalia uma expressão XPath, resolvendo os prefixos de namespace usando o IXmlNamespaceResolver especificado.Evaluates an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
| XPathSelectElement(XNode, String) |
Seleciona um XElement usando uma expressão XPath.Selects an XElement using a XPath expression. |
| XPathSelectElement(XNode, String, IXmlNamespaceResolver) |
Seleciona um XElement usando uma expressão XPath, resolvendo os prefixos de namespace usando o IXmlNamespaceResolver especificado.Selects an XElement using a XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
| XPathSelectElements(XNode, String) |
Seleciona uma coleção de elementos usando uma expressão XPath.Selects a collection of elements using an XPath expression. |
| XPathSelectElements(XNode, String, IXmlNamespaceResolver) |
Seleciona uma coleção de elementos usando uma expressão XPath, resolvendo os prefixos de namespace usando o IXmlNamespaceResolver especificado.Selects a collection of elements using an XPath expression, resolving namespace prefixes using the specified IXmlNamespaceResolver. |
| ToXPathNavigable(XNode) |
Retorna um acessador que permite que você navegue e edite o XNode especificado.Returns an accessor that allows you to navigate and edit the specified XNode. |