XmlQueryNodeSequence XmlQueryNodeSequence XmlQueryNodeSequence XmlQueryNodeSequence Class

Definition

A sequence of XML nodes that dynamically expands and allows random access to items.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class XmlQueryNodeSequence sealed : System::Xml::Xsl::Runtime::XmlQuerySequence<System::Xml::XPath::XPathNavigator ^>, System::Collections::Generic::ICollection<System::Xml::XPath::XPathItem ^>, System::Collections::Generic::IEnumerable<System::Xml::XPath::XPathItem ^>, System::Collections::Generic::IList<System::Xml::XPath::XPathItem ^>
public sealed class XmlQueryNodeSequence : System.Xml.Xsl.Runtime.XmlQuerySequence<System.Xml.XPath.XPathNavigator>, System.Collections.Generic.ICollection<System.Xml.XPath.XPathItem>, System.Collections.Generic.IEnumerable<System.Xml.XPath.XPathItem>, System.Collections.Generic.IList<System.Xml.XPath.XPathItem>
type XmlQueryNodeSequence = class
    inherit XmlQuerySequence<XPathNavigator>
    interface IList<XPathItem>
    interface ICollection<XPathItem>
    interface seq<XPathItem>
    interface IEnumerable
Public NotInheritable Class XmlQueryNodeSequence
Inherits XmlQuerySequence(Of XPathNavigator)
Implements ICollection(Of XPathItem), IEnumerable(Of XPathItem), IList(Of XPathItem)
Inheritance
XmlQueryNodeSequenceXmlQueryNodeSequenceXmlQueryNodeSequenceXmlQueryNodeSequence
Implements

Constructors

XmlQueryNodeSequence() XmlQueryNodeSequence() XmlQueryNodeSequence() XmlQueryNodeSequence()

Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(IList<XPathNavigator>) XmlQueryNodeSequence(IList<XPathNavigator>) XmlQueryNodeSequence(IList<XPathNavigator>) XmlQueryNodeSequence(IList<XPathNavigator>)

Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(Int32) XmlQueryNodeSequence(Int32) XmlQueryNodeSequence(Int32) XmlQueryNodeSequence(Int32)

Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(XPathNavigator) XmlQueryNodeSequence(XPathNavigator) XmlQueryNodeSequence(XPathNavigator) XmlQueryNodeSequence(XPathNavigator)

Initializes a new instance of the XmlQueryNodeSequence class.

XmlQueryNodeSequence(XPathNavigator[], Int32) XmlQueryNodeSequence(XPathNavigator[], Int32) XmlQueryNodeSequence(XPathNavigator[], Int32) XmlQueryNodeSequence(XPathNavigator[], Int32)

Initializes a new instance of the XmlQueryNodeSequence class.

Fields

Empty Empty Empty Empty

Gets an empty XmlQueryNodeSequence that is properly initialized.

Properties

Count Count Count Count

Returns the number of items in the sequence.

(Inherited from XmlQuerySequence<T>)
ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

Returns false. The XmlQuerySequence<T> is not thread-safe.

(Inherited from XmlQuerySequence<T>)
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

Returns this instance of the XmlQuerySequence<T> class. This instance can be used to synchronize access.

(Inherited from XmlQuerySequence<T>)
ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly

If the XmlQuerySequence<T> is read-only, this property returns true.

(Inherited from XmlQuerySequence<T>)
IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

Returns true to indicate items cannot be added, removed, or modified.

(Inherited from XmlQuerySequence<T>)
IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

Gets a value indicating whether the XmlQuerySequence<T> is read-only. Always true.

(Inherited from XmlQuerySequence<T>)
IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Returns the item at the specified index.

(Inherited from XmlQuerySequence<T>)
IsDocOrderDistinct IsDocOrderDistinct IsDocOrderDistinct IsDocOrderDistinct

If this property is true, the nodes in this cache are in document order with no duplicates.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Returns the item at the specified index.

(Inherited from XmlQuerySequence<T>)

Methods

Add(T) Add(T) Add(T) Add(T)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
AddClone(XPathNavigator) AddClone(XPathNavigator) AddClone(XPathNavigator) AddClone(XPathNavigator)

Clone the navigator and then adds a node to the sequence.

Clear() Clear() Clear() Clear()

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
Contains(T) Contains(T) Contains(T) Contains(T)

Returns true if the specified value is in the sequence.

(Inherited from XmlQuerySequence<T>)
CopyTo(T[], Int32) CopyTo(T[], Int32) CopyTo(T[], Int32) CopyTo(T[], Int32)

Copies the contents of this sequence to the specified array, starting at the specified index in the array.

(Inherited from XmlQuerySequence<T>)
CreateOrReuse(XmlQueryNodeSequence) CreateOrReuse(XmlQueryNodeSequence) CreateOrReuse(XmlQueryNodeSequence) CreateOrReuse(XmlQueryNodeSequence)

Clears and reuses the specified XmlQueryNodeSequence if it is available. If the seq parameter is null, creates a new XmlQueryNodeSequence.

CreateOrReuse(XmlQueryNodeSequence, XPathNavigator) CreateOrReuse(XmlQueryNodeSequence, XPathNavigator) CreateOrReuse(XmlQueryNodeSequence, XPathNavigator) CreateOrReuse(XmlQueryNodeSequence, XPathNavigator)

Clears and reuses the specified XmlQueryNodeSequence if it is available. If the seq parameter is null, creates a new XmlQueryNodeSequence and adds navigator to the sequence.

DocOrderDistinct(IComparer<XPathNavigator>) DocOrderDistinct(IComparer<XPathNavigator>) DocOrderDistinct(IComparer<XPathNavigator>) DocOrderDistinct(IComparer<XPathNavigator>)

Returns a sequence that contains all the distinct nodes in this cache, sorted in document order.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns IEnumerator<T>.

(Inherited from XmlQuerySequence<T>)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(T) IndexOf(T) IndexOf(T) IndexOf(T)

Returns the index of the specified value in the sequence.

(Inherited from XmlQuerySequence<T>)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnItemsChanged() OnItemsChanged() OnItemsChanged() OnItemsChanged()

Called when one or more items in the cache have been added or removed. This method can also be called from the SortByKeys(Array) method.

(Inherited from XmlQuerySequence<T>)
SortByKeys(Array) SortByKeys(Array) SortByKeys(Array) SortByKeys(Array)

Sort the items in the cache using the keys contained in the specified array.

(Inherited from XmlQuerySequence<T>)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

Copies the contents of this sequence to the specified array, starting at the specified index in the target array.

(Inherited from XmlQuerySequence<T>)
ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
ICollection<T>.Clear() ICollection<T>.Clear() ICollection<T>.Clear() ICollection<T>.Clear()

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
ICollection<T>.Remove(T) ICollection<T>.Remove(T) ICollection<T>.Remove(T) ICollection<T>.Remove(T)

Removes the specified item from the collection.

(Inherited from XmlQuerySequence<T>)
ICollection<XPathItem>.Add(XPathItem) ICollection<XPathItem>.Add(XPathItem) ICollection<XPathItem>.Add(XPathItem) ICollection<XPathItem>.Add(XPathItem)

Throws the NotSupportedException exception.

ICollection<XPathItem>.Clear() ICollection<XPathItem>.Clear() ICollection<XPathItem>.Clear() ICollection<XPathItem>.Clear()

Throws the NotSupportedException exception.

ICollection<XPathItem>.Contains(XPathItem) ICollection<XPathItem>.Contains(XPathItem) ICollection<XPathItem>.Contains(XPathItem) ICollection<XPathItem>.Contains(XPathItem)

Returns true if the specified value is in the sequence.

ICollection<XPathItem>.CopyTo(XPathItem[], Int32) ICollection<XPathItem>.CopyTo(XPathItem[], Int32) ICollection<XPathItem>.CopyTo(XPathItem[], Int32) ICollection<XPathItem>.CopyTo(XPathItem[], Int32)

Copies the contents of this sequence to the specified array, starting at the specified index in the target array.

ICollection<XPathItem>.get_Count() ICollection<XPathItem>.get_Count() ICollection<XPathItem>.get_Count() ICollection<XPathItem>.get_Count()
ICollection<XPathItem>.IsReadOnly ICollection<XPathItem>.IsReadOnly ICollection<XPathItem>.IsReadOnly ICollection<XPathItem>.IsReadOnly

Specifies that items cannot be added, removed, or modified through the ICollection<T> interface.

ICollection<XPathItem>.Remove(XPathItem) ICollection<XPathItem>.Remove(XPathItem) ICollection<XPathItem>.Remove(XPathItem) ICollection<XPathItem>.Remove(XPathItem)

Throws the NotSupportedException exception.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that can be used to iterate through the query sequence collection.

(Inherited from XmlQuerySequence<T>)
IEnumerable<XPathItem>.GetEnumerator() IEnumerable<XPathItem>.GetEnumerator() IEnumerable<XPathItem>.GetEnumerator() IEnumerable<XPathItem>.GetEnumerator()

Returns the IEnumerator<T> of XPathItem implementation.

IList.Add(Object) IList.Add(Object) IList.Add(Object) IList.Add(Object)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList.Clear() IList.Clear() IList.Clear() IList.Clear()

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Returns true if the specified value is in the sequence.

(Inherited from XmlQuerySequence<T>)
IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Returns the index of the specified value in the sequence.

(Inherited from XmlQuerySequence<T>)
IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Not implemented. Throws the NotSupportedException exception.

(Inherited from XmlQuerySequence<T>)
IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList<T>.Insert(Int32, T) IList<T>.Insert(Int32, T) IList<T>.Insert(Int32, T) IList<T>.Insert(Int32, T)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList<T>.RemoveAt(Int32) IList<T>.RemoveAt(Int32) IList<T>.RemoveAt(Int32) IList<T>.RemoveAt(Int32)

Throws a NotSupportedException exception in all cases.

(Inherited from XmlQuerySequence<T>)
IList<XPathItem>.IndexOf(XPathItem) IList<XPathItem>.IndexOf(XPathItem) IList<XPathItem>.IndexOf(XPathItem) IList<XPathItem>.IndexOf(XPathItem)

Returns the index of the specified value in the sequence.

IList<XPathItem>.Insert(Int32, XPathItem) IList<XPathItem>.Insert(Int32, XPathItem) IList<XPathItem>.Insert(Int32, XPathItem) IList<XPathItem>.Insert(Int32, XPathItem)

Throws the NotSupportedException exception.

IList<XPathItem>.Item[Int32] IList<XPathItem>.Item[Int32] IList<XPathItem>.Item[Int32] IList<XPathItem>.Item[Int32]

Returns the item at the specified index.

IList<XPathItem>.RemoveAt(Int32) IList<XPathItem>.RemoveAt(Int32) IList<XPathItem>.RemoveAt(Int32) IList<XPathItem>.RemoveAt(Int32)

Throws the NotSupportedException exception.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to