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
Public method EdmEnumType(String, String) Initializes a new instance of the EdmEnumType class with Int32 underlying type.
Public method EdmEnumType(String, String, Boolean) Initializes a new instance of the EdmEnumType class with Int32 underlying type.
Public method EdmEnumType(String, String, EdmPrimitiveTypeKind, Boolean) Initializes a new instance of the EdmEnumType class with Int32 underlying type.
Public method EdmEnumType(String, String, IEdmPrimitiveType, Boolean) Initializes a new instance of the EdmEnumType class.

Top

Properties

  Name Description
Public property IsFlags Gets a value indicating whether the enumeration type can be treated as a bit field.
Public property Members Gets the members of this enumeration type.
Public property Name Gets or sets the name of this enumeration type.
Public property Namespace Gets or sets the namespace this schema element belongs to.
Public property SchemaElementKind Gets the kind of this schema element.
Public property TypeKind Gets the kind of this type. (Overrides EdmType.TypeKind.)
Public property UnderlyingType Gets the underlying type of this enumeration type.

Top

Methods

  Name Description
Public method AddMember(IEdmEnumMember) Adds a new member to this enumeration type.
Public method AddMember(String, IEdmPrimitiveValue) Creates and adds a new member to this enumeration type.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Creates and returns a string representation EdmType class. (Inherited from EdmType.)

Top

Extension Methods

  Name Description
Public Extension Method 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.)
Public Extension Method FullName Gets the full name with the specified element. (Defined by ExtensionMethods.)
Public Extension Method IsBad Indicates whether this element contains errors returned by the Errors(IEdmElement) method. (Defined by ValidationExtensionMethods.)
Public Extension Method IsEquivalentTo Indicates a value whether the compared type is semantically equivalent to this type. (Defined by EdmElementComparer.)
Public Extension Method IsOrInheritsFrom Determines whether a type is equivalent to or derived from another type. (Defined by EdmTypeSemantics.)
Public Extension Method IsSpatial Determines whether this definition refers to a spatial type. (Defined by EdmTypeSemantics.)
Public Extension Method Location Gets the location of the specified item. (Defined by ExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method ToTraceString() Overloaded. Returns the text representation of the current object. (Defined by ToTraceStringExtensionMethods.)
Public Extension Method 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.

See Also

Reference

Microsoft.Data.Edm.Library Namespace