Class FilterExpressionNodeCollection
Provides a strongly typed collection for FilterExpressionNode objects and implements the IHierarchicalEnumerable interface to support navigating through the collection.
Inheritance
Implements
Inherited Members
Namespace: Mediachase.BusinessFoundation
Assembly: Mediachase.BusinessFoundation.dll
Version: 10.8.0Syntax
public class FilterExpressionNodeCollection : Collection<FilterExpressionNode>, IList<FilterExpressionNode>, ICollection<FilterExpressionNode>, IList, ICollection, IReadOnlyList<FilterExpressionNode>, IReadOnlyCollection<FilterExpressionNode>, IEnumerable<FilterExpressionNode>, IHierarchicalEnumerable, IEnumerable
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<T>.
Declaration
protected override void ClearItems()
Overrides
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 |
Returns
Type | Description |
---|---|
FilterExpressionNode |
GetHierarchyData(Object)
Returns a hierarchical data item for the specified enumerated item.
Declaration
public virtual IHierarchyData GetHierarchyData(object enumeratedItem)
Parameters
Type | Name | Description |
---|---|---|
System.Object | enumeratedItem | The System.Object for which to return an System.Web.UI.IHierarchyData. |
Returns
Type | Description |
---|---|
System.Web.UI.IHierarchyData | An System.Web.UI.IHierarchyData instance that represents the System.Object passed to the System.Web.UI.IHierarchicalEnumerable.GetHierarchyData(System.Object) method. |
InsertItem(Int32, FilterExpressionNode)
Inserts an element into the System.Collections.ObjectModel.Collection<T> 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. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection<T>.Count. |
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection<T>.
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is less than zero.-or-index is equal to or greater than System.Collections.ObjectModel.Collection<T>.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. |
Overrides
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection<T>.Count. |