XmlQueryItemSequence XmlQueryItemSequence XmlQueryItemSequence XmlQueryItemSequence Class

Definition

A sequence of XML items 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 XmlQueryItemSequence sealed : System::Xml::Xsl::Runtime::XmlQuerySequence<System::Xml::XPath::XPathItem ^>
public sealed class XmlQueryItemSequence : System.Xml.Xsl.Runtime.XmlQuerySequence<System.Xml.XPath.XPathItem>
type XmlQueryItemSequence = class
    inherit XmlQuerySequence<XPathItem>
Public NotInheritable Class XmlQueryItemSequence
Inherits XmlQuerySequence(Of XPathItem)
Inheritance
XmlQueryItemSequenceXmlQueryItemSequenceXmlQueryItemSequenceXmlQueryItemSequence

Constructors

XmlQueryItemSequence() XmlQueryItemSequence() XmlQueryItemSequence() XmlQueryItemSequence()

Initializes a new instance of the XmlQueryItemSequence class.

XmlQueryItemSequence(Int32) XmlQueryItemSequence(Int32) XmlQueryItemSequence(Int32) XmlQueryItemSequence(Int32)

Initializes a new instance of the XmlQueryItemSequence class.

XmlQueryItemSequence(XPathItem) XmlQueryItemSequence(XPathItem) XmlQueryItemSequence(XPathItem) XmlQueryItemSequence(XPathItem)

Initializes a new instance of the XmlQueryItemSequence class.

Fields

Empty Empty Empty Empty

Returns a properly initialized, empty XmlQueryItemSequence.

Methods

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

Throws a NotSupportedException exception in all cases.

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

Adds an item to the sequence. If the item is a navigator, this method clones it before adding it 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(XmlQueryItemSequence) CreateOrReuse(XmlQueryItemSequence) CreateOrReuse(XmlQueryItemSequence) CreateOrReuse(XmlQueryItemSequence)

Clears and reuses an XmlQueryItemSequence object if it is available. If the seq parameter is null, creates a new XmlQueryItemSequence.

CreateOrReuse(XmlQueryItemSequence, XPathItem) CreateOrReuse(XmlQueryItemSequence, XPathItem) CreateOrReuse(XmlQueryItemSequence, XPathItem) CreateOrReuse(XmlQueryItemSequence, XPathItem)

Clears and reuses an XmlQueryItemSequence object if it is available. If the seq parameter is null, creates a new XmlQueryItemSequence. This method then adds a new item to reused or new sequence.

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)

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>)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Returns the item at the specified index.

(Inherited from XmlQuerySequence<T>)

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>)
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>)
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>)

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