共用方式為


IEdmEnumType 介面

定義

表示 EDM 列舉型別的定義。

public interface IEdmEnumType : Microsoft.OData.Edm.IEdmSchemaType
type IEdmEnumType = interface
    interface IEdmSchemaType
    interface IEdmSchemaElement
    interface IEdmNamedElement
    interface IEdmElement
    interface IEdmVocabularyAnnotatable
    interface IEdmType
Public Interface IEdmEnumType
Implements IEdmSchemaType
衍生
實作

屬性

IsFlags

取得指示是否可將列舉型別視為位元欄位的值。

Members

取得此列舉型別的成員。

Name

取得此元素的名稱。

(繼承來源 IEdmNamedElement)
Namespace

取得此結構描述元素所屬的命名空間。

(繼承來源 IEdmSchemaElement)
SchemaElementKind

取得此結構描述元素的類型。

(繼承來源 IEdmSchemaElement)
TypeKind

取得此型別的類型。

(繼承來源 IEdmType)
UnderlyingType

取得此列舉型別的基礎型別。

擴充方法

IsEquivalentTo(IEdmType, IEdmType)

如果相比較的型別在語意上等於此型別,則傳回 true。 架構類型 () IEdmSchemaType 會與其物件 ref 進行比較。

AsActualType(IEdmType)

傳回指定型別的實際型別。 如果指定的類型是類型定義,則實際類型是其基礎類型;否則,傳回指定的型別本身。

IsBinary(IEdmType)

如果這個定義參考二進位類型,則傳回 true。

IsDecimal(IEdmType)

如果這個定義參考十進位類型,則傳回 true。

IsGeography(IEdmType)

如果這個定義參考 geography 類型,則傳回 true。

IsGeometry(IEdmType)

如果這個定義參考幾何類型,則傳回 true。

IsOnSameTypeHierarchyLineWith(IEdmType, IEdmType)

判斷 thisType 是否與 otherType 相同,或 thisType 衍生自 otherType,或是 otherType 衍生自 thisType。

IsOrInheritsFrom(IEdmType, IEdmType)

判斷類型是否等於或衍生自另一個類型。

IsSpatial(IEdmType)

如果這個定義參考空間類型,則傳回 true。

IsStream(IEdmType)

如果這個參考參考資料流類型,則傳回 true。

IsString(IEdmType)

如果這個定義參考字串類型,則傳回 true。

IsTemporal(IEdmType)

如果這個定義參考時態型別,則傳回 true。

IsUntyped(IEdmType)

如果這個定義參考不具類型的類型,則傳回 true。

GetSymbolicString(IEdmVocabularyAnnotatable)

取得批註專案的符號字串。 在下一個中斷性變更中,最好將屬性新增至 IEdmVocabularyAnnotatable

TryParseEnum(IEdmEnumType, String, Boolean, Int64)

將列舉常值剖析為整數。 常值可以是 enum 成員名稱 (例如「Red」) 、基礎值 (例如 「2」) ,或 (合併的值,例如「Red、Green、Blue」、「1,2,4」) 。

AsElementType(IEdmType)

取得集合定義的專案類型,或型別參考所參考之非集合定義的本身。

FullName(IEdmSchemaElement)

取得專案的完整名稱。

FullTypeName(IEdmType)

取得型別參考所參考之定義的完整名稱。

IsOpen(IEdmType)

如果開啟這個參考的定義,則傳回 true。

Location(IEdmElement)

取得此元素的位置。

ShortQualifiedName(IEdmSchemaElement)

取得專案的簡短限定名稱。

VocabularyAnnotations(IEdmVocabularyAnnotatable, IEdmModel)

取得從特定模型中所見之可註釋元素的詞彙註釋。

ToTraceString(IEdmSchemaElement)

傳回目前物件的文字表示。

ToTraceString(IEdmSchemaType)

傳回目前物件的文字表示。

ToTraceString(IEdmType)

傳回目前物件的文字表示。

Errors(IEdmElement)

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

IsBad(IEdmElement)

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

適用於