2.2.4.1.1.2.1.2.2 MetadataType Complex Type

The MetadataType type<39> describes the properties of a simple element in the axis hierarchy. For example, in the Year:Quarter:Month:MonthDay axis dimension, the member type describes the Year, the Quarter, the Month, or the MonthDay member of the hierarchy.

 <xsd:complexType name="MetadataType">
   <xsd:sequence>
     <xsd:element name="HierUName" type="xsd:string" minOccurs="1" maxOccurs="1" />
     <xsd:element name="HierFlags" type="xsd:int" minOccurs="1" maxOccurs="1" />
     <xsd:element name="AllMemberName" type="xsd:string" minOccurs="1" maxOccurs="1" />
     <xsd:element name="L#UName" type="xsd:string" minOccurs="1" maxOccurs="2" />
     <xsd:element name="MemberFormatString" type="xsd:string" minOccurs="0" maxOccurs="1" />
     <xsd:element name="DLValType" type="xsd:int" minOccurs="1" maxOccurs="1" />
   </xsd:sequence>
 </xsd:complexType>

Element

Description

HierUName

The name of the hierarchy that uniquely identifies the hierarchy.

HierFlags

0 – Indicates that the hierarchy is from one of the dimensions.

1 – Indicates that the hierarchy is from the Measures dimension.

AllMemberName

The name that uniquely identifies the All member.

L#UName

The UniqueName (a name that uniquely identifies the level) generated by the server for each level, where # is an integer that indicates the level number. The only valid integers are 0 and 1, as in L0UName and L1UName.

MemberFormatString

The MemberFormatString provides the format string of the members of the hierarchy.<40>

DLValType

This value indicates the data type of the result:

  • VT_NULL= 1 indicates a null value.

  • VT_I2= 2 indicates a 2-byte integer.

  • VT_I4= 3 indicates a 4-byte integer.

  • T_R4= 4 indicates a 4-byte real.

  • VT_R8= 5 indicates an 8-byte real.

  • VT_CY= 6 indicates a currency.

  • VT_DATE= 7 indicates a date.

  • VT_BSTR= 8 indicates a binary string.

  • VT_BOOL= 11 indicates a Boolean.