Attribute 元素 (XMLA)

定义或筛选执行父 InsertUpdateDrop 命令的属性成员。

语法

<Attributes>
   ...
   <Attribute>
      <AttributeName>...</AttributeName>
      <Keys>...</Keys>
      <!-- The following elements are included only for attributes contained in the Attributes element of a parent Insert or Update command -->
      <Name>...</Name>
      <Translations>...</Translations>
      <CustomRollup>...</CustomRollup>
      <CustomRollupProperties>...</CustomRollupProperties>
      <UnaryOperator>...</UnaryOperator>
      <SkippedLevels>...</SkippedLevels>
   </Attribute>
   ...
</Attributes>

元素特征

特征

说明

数据类型和长度

默认值

基数

1-1:出现一次且仅出现一次的必需元素。

元素关系

关系

元素

父元素

属性

子元素

注释

Attribute 元素定义分别由 Insert、Update 或 Drop 命令来插入、更新或删除的属性成员。 由于这些命令一次只能对一个属性成员进行操作,因此 Insert、Update 和 Drop 命令的 Attributes 集合只能包含一个 Attribute 元素。 但是,Drop 和 Update 命令的 Where 元素的 Attributes 集合可以包含多个 Attribute 元素,因此您可以在启用写操作的维度中筛选要删除或更新的属性。

请参阅

概念

属性 (XMLA)

启用写操作的维度