Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class FilterExpressionNodeCollection

Provides a strongly typed collection for FilterExpressionNode objects and implements the IHierarchicalEnumerable interface to support navigating through the collection.

Inheritance
System.Object
FilterExpressionNodeCollection
Namespace: EPiServer.Commerce.CustomViewSetting.Internal.FilterExpressions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class FilterExpressionNodeCollection : Collection<FilterExpressionNode>

Constructors

FilterExpressionNodeCollection()

Initializes a new instance of the FilterExpressionNodeCollection class.

Declaration
public FilterExpressionNodeCollection()

FilterExpressionNodeCollection(FilterExpressionNode[])

Initializes a new instance of the FilterExpressionNodeCollection class.

Declaration
public FilterExpressionNodeCollection(params FilterExpressionNode[] childNodes)
Parameters
Type Name Description
FilterExpressionNode[] childNodes

The child nodes.

FilterExpressionNodeCollection(FilterExpressionNodeCollection)

Initializes a new instance of the FilterExpressionNodeCollection class.

Declaration
public FilterExpressionNodeCollection(FilterExpressionNodeCollection childNodes)
Parameters
Type Name Description
FilterExpressionNodeCollection childNodes

The child nodes.

Properties

InnerParentNode

Gets the parent node.

Declaration
protected FilterExpressionNode InnerParentNode { get; }
Property Value
Type Description
FilterExpressionNode

The parent node.

Methods

AddRange(FilterExpressionNode[])

Adds the range.

Declaration
public virtual void AddRange(params FilterExpressionNode[] childNodes)
Parameters
Type Name Description
FilterExpressionNode[] childNodes

The child nodes.

AddRange(FilterExpressionNodeCollection)

Adds the range.

Declaration
public virtual void AddRange(FilterExpressionNodeCollection childNodes)
Parameters
Type Name Description
FilterExpressionNodeCollection childNodes

The child nodes.

ClearItems()

Removes all elements from the System.Collections.ObjectModel.Collection`1.

Declaration
protected override void ClearItems()

Find(String)

Finds the specified key.

Declaration
public FilterExpressionNode Find(string key)
Parameters
Type Name Description
System.String key

The key.

Returns
Type Description
FilterExpressionNode

Find(String, Boolean)

Finds the specified key.

Declaration
public FilterExpressionNode Find(string key, bool deep)
Parameters
Type Name Description
System.String key

The key.

System.Boolean deep

if set to true check ChildNodes recursion.

Returns
Type Description
FilterExpressionNode

InsertItem(Int32, FilterExpressionNode)

Inserts an element into the System.Collections.ObjectModel.Collection`1 at the specified index.

Declaration
protected override void InsertItem(int index, FilterExpressionNode item)
Parameters
Type Name Description
System.Int32 index

The zero-based index at which item should be inserted.

FilterExpressionNode item

The object to insert. The value can be null for reference types.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection`1.Count.

RemoveItem(Int32)

Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to remove.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than System.Collections.ObjectModel.Collection`1.Count.

SetItem(Int32, FilterExpressionNode)

Replaces the element at the specified index.

Declaration
protected override void SetItem(int index, FilterExpressionNode item)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to replace.

FilterExpressionNode item

The new value for the element at the specified index. The value can be null for reference types.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection`1.Count.