EdmEnumType Class
Represents the definition of an Edm enumeration type.
Inheritance Hierarchy
System.Object
Microsoft.Data.Edm.Library.EdmElement
Microsoft.Data.Edm.Library.EdmType
Microsoft.Data.Edm.Library.EdmEnumType
Namespace: Microsoft.Data.Edm.Library
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
Public Class EdmEnumType _
Inherits EdmType _
Implements IEdmEnumType, IEdmSchemaType, IEdmSchemaElement, IEdmNamedElement, _
IEdmVocabularyAnnotatable, IEdmType, IEdmElement
'Usage
Dim instance As EdmEnumType
public class EdmEnumType : EdmType,
IEdmEnumType, IEdmSchemaType, IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable,
IEdmType, IEdmElement
public ref class EdmEnumType : public EdmType,
IEdmEnumType, IEdmSchemaType, IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable,
IEdmType, IEdmElement
type EdmEnumType =
class
inherit EdmType
interface IEdmEnumType
interface IEdmSchemaType
interface IEdmSchemaElement
interface IEdmNamedElement
interface IEdmVocabularyAnnotatable
interface IEdmType
interface IEdmElement
end
public class EdmEnumType extends EdmType implements IEdmEnumType, IEdmSchemaType, IEdmSchemaElement, IEdmNamedElement, IEdmVocabularyAnnotatable, IEdmType, IEdmElement
The EdmEnumType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
EdmEnumType(String, String) | Initializes a new instance of the EdmEnumType class with Int32 underlying type. | |
EdmEnumType(String, String, Boolean) | Initializes a new instance of the EdmEnumType class with Int32 underlying type. | |
EdmEnumType(String, String, EdmPrimitiveTypeKind, Boolean) | Initializes a new instance of the EdmEnumType class with Int32 underlying type. | |
EdmEnumType(String, String, IEdmPrimitiveType, Boolean) | Initializes a new instance of the EdmEnumType class. |
Top
Properties
Name | Description | |
---|---|---|
IsFlags | Gets a value indicating whether the enumeration type can be treated as a bit field. | |
Members | Gets the members of this enumeration type. | |
Name | Gets or sets the name of this enumeration type. | |
Namespace | Gets or sets the namespace this schema element belongs to. | |
SchemaElementKind | Gets the kind of this schema element. | |
TypeKind | Gets the kind of this type. (Overrides EdmType.TypeKind.) | |
UnderlyingType | Gets the underlying type of this enumeration type. |
Top
Methods
Name | Description | |
---|---|---|
AddMember(IEdmEnumMember) | Adds a new member to this enumeration type. | |
AddMember(String, IEdmPrimitiveValue) | Creates and adds a new member to this enumeration type. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | Creates and returns a string representation EdmType class. (Inherited from EdmType.) |
Top
Extension Methods
Name | Description | |
---|---|---|
Errors | Gets the errors, if any, that belong to this element or elements that this element contains. For example errors for a structural type include the errors of the type itself and errors of its declared properties. The method does not analyze elements referenced by this element. For example errors of a property do not include errors from its type. (Defined by ValidationExtensionMethods.) | |
FullName | Gets the full name with the specified element. (Defined by ExtensionMethods.) | |
IsBad | Indicates whether this element contains errors returned by the Errors(IEdmElement) method. (Defined by ValidationExtensionMethods.) | |
IsEquivalentTo | Indicates a value whether the compared type is semantically equivalent to this type. (Defined by EdmElementComparer.) | |
IsOrInheritsFrom | Determines whether a type is equivalent to or derived from another type. (Defined by EdmTypeSemantics.) | |
IsSpatial | Determines whether this definition refers to a spatial type. (Defined by EdmTypeSemantics.) | |
Location | Gets the location of the specified item. (Defined by ExtensionMethods.) | |
ToTraceString() | Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.) | |
ToTraceString() | Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.) | |
ToTraceString() | Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.) | |
VocabularyAnnotations | Gets an annotatable element's vocabulary annotations as seen from a particular model. (Defined by ExtensionMethods.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.