Class FilterElementCollection
Represents collection of filter elements.
Inheritance
Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 14.26.0Syntax
public class FilterElementCollection : Collection<FilterElement>
Constructors
FilterElementCollection()
Initializes a new instance of the FilterElementCollection class.
Declaration
public FilterElementCollection()
FilterElementCollection(FilterElement[])
Initializes a new instance of the FilterElementCollection class.
Declaration
public FilterElementCollection(params FilterElement[] items)
Parameters
Type | Name | Description |
---|---|---|
FilterElement[] | items | The items. |
Methods
Add(FilterElement)
Adds the specified item.
Declaration
public int Add(FilterElement item)
Parameters
Type | Name | Description |
---|---|---|
FilterElement | item | The item. |
Returns
Type | Description |
---|---|
System.Int32 |
AddRange(FilterElement[])
Adds the range.
Declaration
public void AddRange(params FilterElement[] filters)
Parameters
Type | Name | Description |
---|---|---|
FilterElement[] | filters | The filters. |
AddRange(FilterElementCollection)
Adds the range.
Declaration
public void AddRange(FilterElementCollection filters)
Parameters
Type | Name | Description |
---|---|---|
FilterElementCollection | filters | The filters. |
Clone()
Clones this instance.
Declaration
public FilterElementCollection Clone()
Returns
Type | Description |
---|---|
FilterElementCollection |
Find(Guid)
Finds the specified uid.
Declaration
public FilterElement Find(Guid filterElementUid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | filterElementUid | The filter element uid. |
Returns
Type | Description |
---|---|
FilterElement |
GetBySource(String)
Gets the by source.
Declaration
public FilterElement GetBySource(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
FilterElement |
GetListBySource(String)
Gets the list by source.
Declaration
public FilterElement[] GetListBySource(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source | The source. |
Returns
Type | Description |
---|---|
FilterElement[] |
Remove(Guid, Boolean)
Removes the specified uid.
Declaration
public void Remove(Guid filterUid, bool deep)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | filterUid | The filter element uid. |
System.Boolean | deep | if set to |
ToArray()
Copies the FilterElement objects from the collection to a new array.
Declaration
public FilterElement[] ToArray()
Returns
Type | Description |
---|---|
FilterElement[] | A new array containing the FilterElement objects copied from the FilterElementCollection. |