Class NamedSetCollection
Represents the on-demand collection of named set objects within a cube.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Olap.Data
Assembly: Syncfusion.Olap.Base.dll
Syntax
public class NamedSetCollection : CollectionBase, IList, ICollection, IEnumerable<NamedSet>, IEnumerable
Constructors
NamedSetCollection()
Initializes a new instance of the NamedSetCollection class.
Declaration
public NamedSetCollection()
NamedSetCollection(CubeSchema)
Initializes a new instance of the DimensionCollection class.
Declaration
public NamedSetCollection(CubeSchema parent_CubeSchema)
Parameters
Type | Name | Description |
---|---|---|
CubeSchema | parent_CubeSchema | The parent cube schema. |
Properties
Item[Int32]
Gets or sets the NamedSet at the specified index.
Declaration
public NamedSet this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the named set. |
Property Value
Type |
---|
NamedSet |
Methods
Add(NamedSet)
Adds the specified named set.
Declaration
public int Add(NamedSet namedSet)
Parameters
Type | Name | Description |
---|---|---|
NamedSet | namedSet | The named set which is to be added. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the named set object in the current collection. |
Contains(NamedSet)
Determines whether the collection contains specified named set.
Declaration
public bool Contains(NamedSet namedSet)
Parameters
Type | Name | Description |
---|---|---|
NamedSet | namedSet | The named set object which is to be searched. |
Returns
Type | Description |
---|---|
System.Boolean |
|
CopyTo(NamedSet[], Int32)
Copies all the elements of the current collection to the specified one-dimensional array.
Declaration
public void CopyTo(NamedSet[] namedSetArray, int index)
Parameters
Type | Name | Description |
---|---|---|
NamedSet[] | namedSetArray | The one-dimensional array that is the destination of the elements copied from the current array. |
System.Int32 | index | The index in array at which copying begins. |
FindByName(String)
Finds the named set by its name.
Declaration
public NamedSet FindByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the named set. |
Returns
Type | Description |
---|---|
NamedSet | The named set object. |
FindByUniqueName(String)
Finds the named set by its unique name.
Declaration
public NamedSet FindByUniqueName(string uniqueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uniqueName | The unique name of the named set. |
Returns
Type | Description |
---|---|
NamedSet | The named set object. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<NamedSet> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<NamedSet> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
IndexOf(NamedSet)
Gets the index of the specified named set.
Declaration
public int IndexOf(NamedSet namedSet)
Parameters
Type | Name | Description |
---|---|---|
NamedSet | namedSet | The named set. |
Returns
Type | Description |
---|---|
System.Int32 | The index of the named set in the collection. |
Insert(Int32, NamedSet)
Inserts the named set at specified index.
Declaration
public void Insert(int index, NamedSet namedSet)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index at which the named set has to be inserted. |
NamedSet | namedSet | The named set object which is to be inserted. |
OnInsertComplete(Int32, Object)
Performs additional custom processes after inserting a new element into the System.Collections.CollectionBase instance.
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which to insert |
System.Object | value | The new value of the element at |
Overrides
OnSetComplete(Int32, Object, Object)
Performs additional custom processes after setting a value in the System.Collections.CollectionBase instance.
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
System.Object | oldValue | The value to replace with |
System.Object | newValue | The new value of the element at |
Overrides
Remove(NamedSet)
Removes the specified named set.
Declaration
public void Remove(NamedSet namedSet)
Parameters
Type | Name | Description |
---|---|---|
NamedSet | namedSet | The named set object which is to be removed. |
RemoveAt(Int32)
Removes the element at the specified index of the System.Collections.CollectionBase instance. This method is not overridable.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the element to remove. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException |
|