Class DataProviderElementCollection<T>
- Namespace
- BiExcellence.OpenBi.Api.DataProviders
- Assembly
- BiExcellence.OpenBi.Api.Client.dll
A list of definition elements that can also be reached by id - definition.Dimensions["COUNTRY"].
Serializes as a plain JSON array.
public sealed class DataProviderElementCollection<T> : Collection<T> where T : DataProviderElement
Type Parameters
TThe element kind.
- Inheritance
-
objectCollection<T>DataProviderElementCollection<T>
Constructors
DataProviderElementCollection()
Creates an empty collection.
public DataProviderElementCollection()
DataProviderElementCollection(IEnumerable<T>)
Creates a collection over the given elements.
public DataProviderElementCollection(IEnumerable<T> elements)
Parameters
elementsIEnumerable<T>
Properties
this[string?]
The element with this id, or null where there is none. A null id finds an element without one.
public T? this[string? id] { get; }
Parameters
idstring
Property Value
- T
Methods
Contains(string)
True where an element with this id is in the collection.
public bool Contains(string id)
Parameters
idstring
Returns
- bool
Remove(string)
Removes the element with this id, if it is there.
public bool Remove(string id)
Parameters
idstring
Returns
- bool
TryGetValue(string, out T)
Looks the element with this id up.
public bool TryGetValue(string id, out T value)
Parameters
idstringvalueT
Returns
- bool