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:出现一次且仅出现一次的必需元素。

元素关系

关系 元素
父元素 特性
子元素 请参阅下表。
祖先或父级 子元素
DropWhere AttributeNameKeys
InsertUpdate AttributeNameCustomRollupCustomRollupPropertiesKeysNameSkippedLevelsTranslationsUnaryOperator

备注

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