XmlQuerySequence<T>.CreateOrReuse Method

Definition

Clears and reuses the specified XmlQuerySequence<T> if it is available. Otherwise, creates a new XmlQuerySequence<T>.

Overloads

CreateOrReuse(XmlQuerySequence<T>)

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

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)

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

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.

CreateOrReuse(XmlQuerySequence<T>)

Source:
XmlQuerySequence.cs
Source:
XmlQuerySequence.cs
Source:
XmlQuerySequence.cs

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

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

C#
public static System.Xml.Xsl.Runtime.XmlQuerySequence<T> CreateOrReuse(System.Xml.Xsl.Runtime.XmlQuerySequence<T> seq);

Parameters

seq
XmlQuerySequence<T>

An XmlQuerySequence<T> instance to be reused.

Returns

An instance of the XmlQuerySequence<T> class.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateOrReuse(XmlQuerySequence<T>, T)

Source:
XmlQuerySequence.cs
Source:
XmlQuerySequence.cs
Source:
XmlQuerySequence.cs

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.

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

C#
public static System.Xml.Xsl.Runtime.XmlQuerySequence<T> CreateOrReuse(System.Xml.Xsl.Runtime.XmlQuerySequence<T> seq, T item);

Parameters

seq
XmlQuerySequence<T>

An XmlQuerySequence<T> instance to be reused.

item
T

An item to add.

Returns

An instance of the XmlQuerySequence<T> class.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1