Class MemberCollection
Represents the collection of member objects.
Implements
Inherited Members
Namespace: Syncfusion.Olap.Data
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class MemberCollection : Collection<Member>, IList<Member>, ICollection<Member>, IList, ICollection, IReadOnlyList<Member>, IReadOnlyCollection<Member>, IEnumerable<Member>, IEnumerable
Remarks
Although the MemberCollection class externally represents a collection of member objects, the collection is internally loaded and managed in one of two ways, depending on the parent of the collection:
* If the parent object was referenced as a result of a query, as in the case of a Tuple, then the collection represents the members referenced by that query.
* If the parent object was referenced as a result of a request for meta-data, then the collection represents the members referenced by the definition of the parent object.
Constructors
MemberCollection()
Initializes a new instance of the MemberCollection class.
Declaration
public MemberCollection()
MemberCollection(Object)
Initializes a new instance of the MemberCollection class.
Declaration
public MemberCollection(object parent_)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent_ | The parent object. |
Methods
AddRange(MemberCollection)
Adds the elements of the specified collection to the end of the System.Collections.Generic.List<T>.
Declaration
public void AddRange(MemberCollection memberCollection)
Parameters
Type | Name | Description |
---|---|---|
MemberCollection | memberCollection | The collection of members. |
FindByName(String)
Finds the member by its name.
Declaration
public Member FindByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the member object. |
Returns
Type | Description |
---|---|
Member | The member object. |
FindByUniqueName(String)
Finds the member by its unique name.
Declaration
public Member FindByUniqueName(string uniqueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uniqueName | The unique name of the member object. |
Returns
Type | Description |
---|---|
Member | The member object. |
InsertItem(Int32, Member)
Inserts an element into the System.Collections.ObjectModel.Collection<T> at the specified index.
Declaration
protected override void InsertItem(int index, Member item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which item should be inserted. |
Member | item | The object to insert. The value can be null for reference types. |
Overrides
SetItem(Int32, Member)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, Member item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to replace. |
Member | 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 |
|