IMetricSetServiceGenerateMetricSet Method (Guid, Guid, PersistencePolicy)

Creates and saves a MetricSet using one of the supported structures. These can be NativeStructure, DataCube or CubePerspective.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
MetricSet GenerateMetricSet(
	Guid parentId,
	Guid structureId,
	PersistencePolicy persistencePolicy
)

Parameters

parentId
Type: SystemGuid
The ID of the parent file or folder.
structureId
Type: SystemGuid
The structure ID.
persistencePolicy
Type: Dundas.BI.EntitiesPersistencePolicy
A value indicating whether the entity should be created as persistent or transient.

Return Value

Type: MetricSet
The newly created metric set.
Exceptions
ExceptionCondition
ArgumentExceptionparentId or structureId is Empty or structureId references a structure that cannot be used for the automatic generation of a MetricSet.
ExternalHierarchyExceptionA metric set cannot be generated directly from a TimeHierarchy or UserHierarchy.
NotFoundExceptionparentId or structureId does not exist.
NoPrivilegeExceptionCaller does not have access to one or more of the specified objects.
InvalidSessionExceptionThe caller context is not associated with a valid session.
DataProviderLoadExceptionThe data provider may throw this exception if it requires third party driver to be installed.
DataConnectionExceptionThe connection cannot be established.
See Also