Attribute 元素 (XMLA)

定義或篩選屬性中 Insert、 Update或 Drop 父命令在上面執行的成員。

Syntax

  
<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>  

元素特性

特性 描述
資料類型和長度 None
預設值 None
基數 1-1:只出現一次的必要元素。

元素關聯性

關聯性 元素
父元素 屬性
子元素 請參閱下表。
上階或父系 子元素
Drop、 Where AttributeName、 Keys
Insert、 Update AttributeName、 CustomRollup、 CustomRollupProperties、 Keys、 Name、 SkippedLevels、 Translations、 UnaryOperator

備註

Attribute 元素會定義分別由 Insert、 Update或 Drop 命令插入、更新或刪除的屬性成員。 因為這些命令一次只能針對單一屬性成員運作,所以 Insert 、 Update和 Drop命令的 Attributes 集合只能包含一個 Attribute 元素。 不過, Attributes 和 Where 命令之 Drop 元素的 Update 集合可以包含一個以上的 Attribute 元素,如此您就可以篩選要在可寫入維度中卸除或更新的屬性。