Compartilhar via


DimensionAttribute.NameColumn Property

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

Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in microsoft.analysisservices.dll)

Syntax

'Declaration
<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)

Property Value

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

Remarks

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.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

DimensionAttribute Class
DimensionAttribute Members
Microsoft.AnalysisServices Namespace