XmlQuerySequence<T> XmlQuerySequence<T> XmlQuerySequence<T> XmlQuerySequence<T> Class

Definition

A sequence of XML values 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.

generic <typename T>
public ref class XmlQuerySequence : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Generic::IList<T>, System::Collections::IList
public class XmlQuerySequence<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.IList
type XmlQuerySequence<'T> = class
    interface IList<'T>
    interface IList
    interface ICollection<'T>
    interface seq<'T>
    interface IEnumerable
    interface ICollection
Public Class XmlQuerySequence(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList, IList(Of T)

Type Parameters

T

The type of this XmlQuerySequence<T>.

Inheritance
XmlQuerySequence<T>XmlQuerySequence<T>XmlQuerySequence<T>XmlQuerySequence<T>
Derived
Implements

Constructors

XmlQuerySequence<T>() XmlQuerySequence<T>() XmlQuerySequence<T>() XmlQuerySequence<T>()

Initializes a new instance of the XmlQuerySequence<T> class.

XmlQuerySequence<T>(Int32) XmlQuerySequence<T>(Int32) XmlQuerySequence<T>(Int32) XmlQuerySequence<T>(Int32)

Initializes a new instance of the XmlQuerySequence<T> class.

XmlQuerySequence<T>(T) XmlQuerySequence<T>(T) XmlQuerySequence<T>(T) XmlQuerySequence<T>(T)

Constructs a singleton XmlQuerySequence<T> that has value as its only element.

XmlQuerySequence<T>(T[], Int32) XmlQuerySequence<T>(T[], Int32) XmlQuerySequence<T>(T[], Int32) XmlQuerySequence<T>(T[], Int32)

Initializes a new instance of the XmlQuerySequence<T> class.

Fields

Empty Empty Empty Empty

Creates a new instance of XmlQuerySequence<T>.

Properties

Count Count Count Count

Returns the number of items in the sequence.

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

Returns the item at the specified index.

Methods

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

Throws a NotSupportedException exception in all cases.

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

Throws a NotSupportedException exception in all cases.

Contains(T) Contains(T) Contains(T) Contains(T)

Returns true if the specified value is in the sequence.

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.

CreateOrReuse(XmlQuerySequence<T>) CreateOrReuse(XmlQuerySequence<T>) CreateOrReuse(XmlQuerySequence<T>) CreateOrReuse(XmlQuerySequence<T>)

Clears and reuses the specified XmlQuerySequence<T> if it is available. If the seq parameter is null, creates a new XmlQuerySequence<T>.

CreateOrReuse(XmlQuerySequence<T>, T) CreateOrReuse(XmlQuerySequence<T>, T) CreateOrReuse(XmlQuerySequence<T>, T) CreateOrReuse(XmlQuerySequence<T>, T)

Clears and reuses the specified XmlQuerySequence<T> it is available. If the seq parameter is null, creates a new XmlQuerySequence<T> and adds item to the collection.

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

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.

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.

SortByKeys(Array) SortByKeys(Array) SortByKeys(Array) SortByKeys(Array)

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

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.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

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

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

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

ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T) ICollection<T>.Add(T)

Throws a NotSupportedException exception in all cases.

ICollection<T>.Clear() ICollection<T>.Clear() ICollection<T>.Clear() ICollection<T>.Clear()

Throws a NotSupportedException exception in all cases.

ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly

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

ICollection<T>.Remove(T) ICollection<T>.Remove(T) ICollection<T>.Remove(T) ICollection<T>.Remove(T)

Removes the specified item from the collection.

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

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

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

Throws a NotSupportedException exception in all cases.

IList.Clear() IList.Clear() IList.Clear() IList.Clear()

Throws a NotSupportedException exception in all cases.

IList.Contains(Object) IList.Contains(Object) IList.Contains(Object) IList.Contains(Object)

Returns true if the specified value is in the sequence.

IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object) IList.IndexOf(Object)

Returns the index of the specified value in the sequence.

IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object) IList.Insert(Int32, Object)

Throws a NotSupportedException exception in all cases.

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

Returns the item at the specified index.

IList.Remove(Object) IList.Remove(Object) IList.Remove(Object) IList.Remove(Object)

Not implemented. Throws the NotSupportedException exception.

IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32) IList.RemoveAt(Int32)

Throws a NotSupportedException exception in all cases.

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.

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

Throws a NotSupportedException exception in all cases.

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