共用方式為


Caption 屬性

Gets the caption of the LevelProperty.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Public ReadOnly Property Caption As String
    Get
'用途
Dim instance As LevelProperty
Dim value As String

value = instance.Caption
public string Caption { get; }
public:
property String^ Caption {
    String^ get ();
}
member Caption : string
function get Caption () : String

屬性值

型別:System. . :: . .String
A String that contains the caption of the LevelProperty.

備註

The Caption property should be used when displaying the name of the LevelProperty to the user, such as in user interfaces or reports.

This property differs from the property of the object in that the value of the property can depend on the locale ID of the application using ADOMD.NET.

In Microsoft SQL Server 2005 Analysis Services (SSAS), each dimension attribute can be associated with a translation that returns a language-specific value for the property, depending on the locale ID of the application querying the server. The server searches for a locale ID that matches that of the requesting application. If an exact match cannot be found for a given language, the language closest to the specified locale ID is used. If a similar language cannot be found, the default language for the server is used.

The value of this property is identical to the value of the PROPERTY_CAPTION column of the PROPERTIES schema rowset for the specified level.