IDataCubeServiceAddAdditionalWarehousingIndex Method

Adds an additional warehouse index to the specified data cube and saves the cube.

Namespace: Dundas.BI.Entities.DataCubes
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.3.0.1000)
Syntax
IndexInfo AddAdditionalWarehousingIndex(
	Guid dataCubeId,
	IndexInfo indexInfo
)

Parameters

dataCubeId  Guid
The data cube ID.
indexInfo  IndexInfo
The index to add. Each of its columns must reference an existing element by unique name.

Return Value

IndexInfo
The effective index, including its Id - the newly added index, or the pre-existing one when an index with identical ordered columns and directions already exists (adding an identical index is a no-op, so redundant duplicates never accumulate).
Exceptions
ExceptionCondition
ArgumentNullExceptionindexInfo is .
ArgumentExceptiondataCubeId is Empty or indexInfo has fewer than two columns.
NoPrivilegeExceptionCaller does not have access to the specified data cube.
InvalidSessionExceptionThe caller context is not associated with a valid session.
NotFoundExceptionThe data cube does not exist, or a referenced element could not be found.
See Also