共用方式為


FormatStringDefinition 類別

定義

代表 FormatStringDefinition 物件。 它是 Measure 或 CalculationItem 的子系。

public sealed class FormatStringDefinition : Microsoft.AnalysisServices.Tabular.MetadataObject
type FormatStringDefinition = class
    inherit MetadataObject
Public NotInheritable Class FormatStringDefinition
Inherits MetadataObject
繼承
FormatStringDefinition

備註

只有在資料庫的相容性層級為 1470 或更新版本時,才支援此中繼資料物件。

建構函式

FormatStringDefinition()

使用預設設定建立 FormatStringDefinition 類別的新實例。

屬性

ErrorMessage

說明與 FormatStringDefinition 相關聯之錯誤狀態的字串。 只有在運算式狀態是下列三個值之一時,才由引擎設定︰SemanticError、DependencyError 或 SyntaxError。

Expression

指定儲存格內容格式的 DAX 運算式。

IsRemoved

布林值,指定是否已從物件樹狀結構移除此物件。

(繼承來源 MetadataObject)
Model

取得包含此物件的表格式模型。

(繼承來源 MetadataObject)
ModifiedTime

上次修改物件的時間。

Object

擁有這個 FormatString 的 Measure 或 CalculationItem 物件的參考。

ObjectType

取得物件的型別。

Parent

Parent 物件,Model 物件則為 null。

State

提供運算式狀態的相關資訊。 可能的值和其解譯如下: Ready (1):運算式可供查詢並且已具備了最新的資料。 SemanticError (5):運算式有語意錯誤。 DependencyError (7):這個運算式有某個與其建立關聯的相依性處於錯誤狀態 (SemanticError、EvaluationError 或 DependencyError)。 SyntaxError (9):運算式有語法錯誤。

方法

Clone()

建立 FormatStringDefinition 物件的新完整複本。

CopyFrom(FormatStringDefinition)
已淘汰.

已取代。 請改用 CopyTo 方法。

CopyTo(FormatStringDefinition)

將 FormatStringDefinition 物件複製到指定的物件。

Validate()

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。 僅供 Microsoft 內部使用。

(繼承來源 MetadataObject)

適用於