共用方式為


EdmDecimalConstant 類別

定義

表示 EDM 十進位常數。

public class EdmDecimalConstant : Microsoft.OData.Edm.Vocabularies.EdmValue, Microsoft.OData.Edm.Vocabularies.IEdmDecimalConstantExpression
type EdmDecimalConstant = class
    inherit EdmValue
    interface IEdmDecimalConstantExpression
    interface IEdmExpression
    interface IEdmElement
    interface IEdmDecimalValue
    interface IEdmPrimitiveValue
    interface IEdmValue
Public Class EdmDecimalConstant
Inherits EdmValue
Implements IEdmDecimalConstantExpression
繼承
EdmDecimalConstant
實作

建構函式

EdmDecimalConstant(Decimal)

初始化 EdmDecimalConstant 類別的新執行個體。

EdmDecimalConstant(IEdmDecimalTypeReference, Decimal)

初始化 EdmDecimalConstant 類別的新執行個體。

屬性

ExpressionKind

取得此運算式的類型。

Type

取得此值的型別。

(繼承來源 EdmValue)
Value

取得此值的定義。

ValueKind

取得此值的類型。

明確介面實作

IEdmDelayedValue.Value

表示 EDM 十進位常數。

(繼承來源 EdmValue)

擴充方法

IsSerializedAsElement(IEdmValue, IEdmModel)

取得指示是否應將該值序列化為元素的註釋。

SetIsSerializedAsElement(IEdmValue, IEdmModel, Boolean)

設定指示是否應將該值序列化為元素的註釋。

Location(IEdmElement)

取得此元素的位置。

TryCast(IEdmExpression, IEdmTypeReference, IEdmType, Boolean, IEnumerable<EdmError>)

判斷運算式的型別是否與提供的型別相容

TryCast(IEdmExpression, IEdmTypeReference, IEnumerable<EdmError>)

判斷運算式的型別是否與提供的型別相容

Errors(IEdmElement)

取得屬於此元素或此元素所包含之元素的錯誤 (如果有的話)。 例如,結構化型別的錯誤包括型別本身的錯誤及其宣告屬性的錯誤。 該方法不會分析此元素所參考的元素。 例如,屬性的錯誤不包括其型別中的錯誤。

IsBad(IEdmElement)

如果這個專案包含 方法傳回的錯誤, Errors(IEdmElement) 則傳回 true。

適用於