共用方式為


DimensionAttribute.Usage Property

Gets or sets how an attribute is used.

命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

語法

'宣告
<DefaultValueAttribute(AttributeUsage.Regular)> _
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.TypeConverterForAttributeUsage, Microsoft.AnalysisServices.Design")> _
Public Property Usage As AttributeUsage
[DefaultValueAttribute(AttributeUsage.Regular)] 
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.TypeConverterForAttributeUsage, Microsoft.AnalysisServices.Design")] 
public AttributeUsage Usage { get; set; }
[DefaultValueAttribute(AttributeUsage::Regular)] 
[TypeConverterAttribute(L"Microsoft.AnalysisServices.Design.TypeConverterForAttributeUsage, Microsoft.AnalysisServices.Design")] 
public:
property AttributeUsage Usage {
    AttributeUsage get ();
    void set (AttributeUsage value);
}
/** @property */
public AttributeUsage get_Usage ()

/** @property */
public void set_Usage (AttributeUsage value)
public function get Usage () : AttributeUsage

public function set Usage (value : AttributeUsage)

屬性值

A AttributeUsage describing how an attribute is used.

備註

The value of this property can be:

Value

Description

Regular

The attribute is a regular attribute.

Key

The attribute is a key attribute.

Parent

The attribute is a parent attribute.

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

DimensionAttribute Class
DimensionAttribute Members
Microsoft.AnalysisServices Namespace