Share via


EnumTypeConfiguration Class

 

Represents an IEdmEnumType that can be built using ODataModelBuilder.

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Inheritance Hierarchy

System.Object
  System.Web.OData.Builder.EnumTypeConfiguration

Syntax

public class EnumTypeConfiguration : IEdmTypeConfiguration
public ref class EnumTypeConfiguration : IEdmTypeConfiguration
type EnumTypeConfiguration = 
    class
        interface IEdmTypeConfiguration
    end
Public Class EnumTypeConfiguration
    Implements IEdmTypeConfiguration

Constructors

Name Description
System_CAPS_pubmethod EnumTypeConfiguration(ODataModelBuilder, Type)

Initializes a new instance of the EnumTypeConfiguration class.

Properties

Name Description
System_CAPS_pubproperty AddedExplicitly

Gets or sets a value that is true if the type's name or namespace was set by the user; false if it was inferred through conventions.

System_CAPS_pubproperty ClrType

Gets the backing CLR Type.

System_CAPS_protproperty ExplicitMembers

Gets the collection of explicitly added members.

System_CAPS_pubproperty FullName

Gets the full name of this EDM type.

System_CAPS_pubproperty IgnoredMembers

Gets the members from the backing CLR type that are to be ignored on this enum type.

System_CAPS_pubproperty IsFlags

Gets the IsFlags of this enum type. If it is true, a combined value is equivalent to the bitwise OR of the discrete values.

System_CAPS_pubproperty Kind

Gets the EdmTypeKind of this EDM type.

System_CAPS_pubproperty Members

Gets all possible members(defined values) of this enum type, which will be added to the EDM model as edm:Member elements.

System_CAPS_pubproperty ModelBuilder

Get the ODataModelBuilder.

System_CAPS_pubproperty Name

Gets or sets the name of this EDM type.

System_CAPS_pubproperty Namespace

Gets or sets the namespace of this EDM type.

System_CAPS_protproperty RemovedMembers

Gets the collection of explicitly removed members.

System_CAPS_pubproperty UnderlyingType

Gets this enum underlying Type.

Methods

Name Description
System_CAPS_pubmethod AddMember(Enum)

Adds an enum member to this enum type.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RemoveMember(Enum)

Removes the given member.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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

System.Web.OData.Builder Namespace

Return to top