Export (0) Print
Expand All

XElement Members

.NET Framework 3.5

Represents an XML element.

The XElement type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework XElement Overloaded. Initializes a new instance of the XElement class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Add Overloaded. Adds the specified content as children to this XContainer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddAfterSelf Overloaded. Adds the specified content immediately after this node.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddAnnotation Adds an object to the annotation list of this XObject. (Inherited from XObject.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddBeforeSelf Overloaded. Adds the specified content immediately before this node.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AddFirst Overloaded. Adds the specified content as the first children of this document or element.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Ancestors Overloaded. Returns a collection of the ancestor elements of this node.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework AncestorsAndSelf Overloaded. Returns a collection of elements that contain this element, and the ancestors of this element.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Annotation Overloaded. Gets an annotation from this XObject.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Annotations Overloaded. Gets a collection of annotations for this XObject.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Attribute Returns the XAttribute of this XElement that has the specified XName.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Attributes Overloaded. Returns a collection of attributes of this element.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CreateReader Creates an XmlReader for this node. (Inherited from XNode.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CreateWriter Creates an XmlWriter that can be used to add nodes to the XContainer. (Inherited from XContainer.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework DescendantNodes Returns a collection of the descendant nodes for this document or element, in document order. (Inherited from XContainer.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework DescendantNodesAndSelf Returns a collection of nodes that contain this element, and all descendant nodes of this element, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Descendants Overloaded. Returns a collection of the descendant elements for this document or element, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework DescendantsAndSelf Overloaded. Returns a collection of elements that contain this element, and all descendant elements of this element, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Element Gets the first (in document order) child element with the specified XName. (Inherited from XContainer.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Elements Overloaded. Returns a collection of the child elements of this element or document, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ElementsAfterSelf Overloaded. Returns a collection of the sibling elements after this node, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ElementsBeforeSelf Overloaded. Returns a collection of the sibling elements before this node, in document order.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetDefaultNamespace Gets the default XNamespace of this XElement.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetNamespaceOfPrefix Gets the namespace associated with a particular prefix for this XElement.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetPrefixOfNamespace Gets the prefix associated with a namespace for this XElement.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsAfter Determines if the current node appears after a specified node in terms of document order. (Inherited from XNode.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IsBefore Determines if the current node appears before a specified node in terms of document order. (Inherited from XNode.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Load Overloaded. Creates a new XElement from a file specified by a URI, from an TextReader, or from an XmlReader.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Nodes Returns a collection of the child nodes of this element or document, in document order. (Inherited from XContainer.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework NodesAfterSelf Returns a collection of the sibling nodes after this node, in document order. (Inherited from XNode.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework NodesBeforeSelf Returns a collection of the sibling nodes before this node, in document order. (Inherited from XNode.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Parse Overloaded. Load an XElement from a string that contains XML, optionally preserving white space and retaining line information.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Remove Removes this node from its parent. (Inherited from XNode.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework RemoveAll Removes nodes and attributes from this XElement.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework RemoveAnnotations Overloaded. Removes annotations from this XObject.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework RemoveAttributes Removes the attributes of this XElement.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework RemoveNodes Removes the child nodes from this document or element. (Inherited from XContainer.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReplaceAll Overloaded. Replaces the child nodes and the attributes of this element with the specified content.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReplaceAttributes Overloaded. Replaces the attributes of this element with the specified content.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReplaceNodes Overloaded. Replaces the children nodes of this document or element with the specified content.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReplaceWith Overloaded. Replaces this node with the specified content.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Save Overloaded. Serialize this element's underlying XML tree. The output can be saved to a file, an XmlTextWriter, a TextWriter, or an XmlWriter. Optionally, formatting (indenting) can be disabled.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetAttributeValue Sets the value of an attribute, adds an attribute, or removes an attribute.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetElementValue Sets the value of a child element, adds a child element, or removes a child element.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetValue Sets the value of this element.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Overloaded. Returns the XML for this node, optionally disabling formatting.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework WriteTo Write this element to an XmlWriter. (Overrides XNode.WriteTo(XmlWriter).)
Top

  NameDescription
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Explicit Overloaded.
Top

  NameDescription
Public Extension Method CreateNavigator Overloaded. Creates an XPathNavigator for an XNode.
Public Extension Method GetSchemaInfo Gets the post-schema-validation infoset (PSVI) of a validated element. (Defined by Extensions.)
Public Extension Method Validate Overloaded. Validates that an XDocument, an XElement, or an XAttribute conforms to an XSD in an XmlSchemaSet.
Public Extension Method XPathEvaluate Overloaded. Evaluates an XPath expression.
Public Extension Method XPathSelectElement Overloaded. Selects an XElement using a XPath expression.
Public Extension Method XPathSelectElements Overloaded. Selects a collection of elements using an XPath expression.
Top

  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework BaseUri Gets the base URI for this XObject. (Inherited from XObject.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Document Gets the XDocument for this XObject. (Inherited from XObject.)
Public property Static member Supported by the .NET Compact Framework Supported by the XNA Framework EmptySequence Gets an empty collection of elements.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework FirstAttribute Gets the first attribute of this element.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework FirstNode Get the first child node of this node. (Inherited from XContainer.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework HasAttributes Gets a value indicating whether this element as at least one attribute.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework HasElements Gets a value indicating whether this element has at least one child element.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsEmpty Gets a value indicating whether this element contains no content.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework LastAttribute Gets the last attribute of this element.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework LastNode Get the last child node of this node. (Inherited from XContainer.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Name Gets the name of this element.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework NextNode Gets the next sibling node of this node. (Inherited from XNode.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework NodeType Gets the node type for this node. (Overrides XObject.NodeType.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Parent Gets the parent XElement of this XObject. (Inherited from XObject.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework PreviousNode Gets the previous sibling node of this node. (Inherited from XNode.)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Value Gets the concatenated text contents of this element.
Top

  NameDescription
Public event Supported by the .NET Compact Framework Supported by the XNA Framework Changed Raised when this XObject or any of its descendants have changed. (Inherited from XObject.)
Public event Supported by the .NET Compact Framework Supported by the XNA Framework Changing Raised when this XObject or any of its descendants are about to change. (Inherited from XObject.)
Top

  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IXmlSerializable.GetSchema Gets an XML schema definition that describes the XML representation of this object.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IXmlLineInfo.HasLineInfo Gets a value indicating whether or not this XObject has line information. (Inherited from XObject.)
Explicit interface implemetation Private property Supported by the .NET Compact Framework Supported by the XNA Framework IXmlLineInfo.LineNumber Gets the line number that the underlying XmlReader reported for this XObject. (Inherited from XObject.)
Explicit interface implemetation Private property Supported by the .NET Compact Framework Supported by the XNA Framework IXmlLineInfo.LinePosition Gets the line position that the underlying XmlReader reported for this XObject. (Inherited from XObject.)
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IXmlSerializable.ReadXml Generates an object from its XML representation.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IXmlSerializable.WriteXml Converts an object into its XML representation.
Top

Community Additions

ADD
Show:
© 2014 Microsoft