共用方式為


DimensionAttribute.NameColumn Property

Gets or sets the column that provides the name of the DimensionAttribute.

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

語法

'宣告
<EditorAttribute("Microsoft.AnalysisServices.Design.DataItemPropertyTypeEditor, Microsoft.AnalysisServices.Design", GetType(UITypeEditor))> _
<XmlElementAttribute(IsNullable:=False)> _
<BrowsableAttribute(True)> _
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")> _
<MergablePropertyAttribute(False)> _
Public Property NameColumn As DataItem
[EditorAttribute("Microsoft.AnalysisServices.Design.DataItemPropertyTypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
[XmlElementAttribute(IsNullable=false)] 
[BrowsableAttribute(true)] 
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")] 
[MergablePropertyAttribute(false)] 
public DataItem NameColumn { get; set; }
[EditorAttribute(L"Microsoft.AnalysisServices.Design.DataItemPropertyTypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
[XmlElementAttribute(IsNullable=false)] 
[BrowsableAttribute(true)] 
[TypeConverterAttribute(L"Microsoft.AnalysisServices.Design.DataItemTypeConverter, Microsoft.AnalysisServices.Design")] 
[MergablePropertyAttribute(false)] 
public:
property DataItem^ NameColumn {
    DataItem^ get ();
    void set (DataItem^ value);
}
/** @property */
public DataItem get_NameColumn ()

/** @property */
public void set_NameColumn (DataItem value)
public function get NameColumn () : DataItem

public function set NameColumn (value : DataItem)

屬性值

A DataItem that identifies the column that provides the name of the DimensionAttribute.

備註

If the KeyColumns collection contains a single KeyColumn representing a key column with a string data type, the same DataItem values are used as default values for the NameColumn property.

In parent-child dimensions, the NameColumn used comes from the child element not from the parent; if the Usage value, on the parent object, is set to Parent, then the NameColumn is not used.

執行緒安全性

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