Version

OlapElementDescriptor Property

Returns or sets a reference to the OLAP element to be associated with this instance's PropertyDescriptor.
Syntax
'Declaration
 
Public Property OlapElementDescriptor As OlapAxisElementDescriptorBase
public OlapAxisElementDescriptorBase OlapElementDescriptor {get; set;}
Remarks

At the entry point for a handler of this event, this property returns either a HierarchyDescriptor or MeasureDescriptor instance, depending on whether the data type of the class member it represents is numeric (members whose type is numeric (int, double, decimal, etc.) are assumed to represent a Measure).

Setting this property to null effectively removes the corresponding class member from the data source, i.e., no axis element is created for that member.

The default behavior, whereby numeric types become measureDescriptors and non-numeric types become hierarchies, can be overriden by simply assigning an instance of the desired type to this property. When a class member whose type is non-numeric is designated as a Measure, however, the default aggregation method is undefined, and cells for that measure appear empty by default. This behavior can be overridden by handling the AggregateMeasure event, and manually aggregating the items therein.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also