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 | |
---|---|---|
EnumTypeConfiguration(ODataModelBuilder, Type) | Initializes a new instance of the EnumTypeConfiguration class. |
Properties
Name | Description | |
---|---|---|
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. |
|
ClrType | Gets the backing CLR Type. |
|
ExplicitMembers | Gets the collection of explicitly added members. |
|
FullName | Gets the full name of this EDM type. |
|
IgnoredMembers | Gets the members from the backing CLR type that are to be ignored on this enum type. |
|
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. |
|
Kind | Gets the EdmTypeKind of this EDM type. |
|
Members | Gets all possible members(defined values) of this enum type, which will be added to the EDM model as edm:Member elements. |
|
ModelBuilder | Get the ODataModelBuilder. |
|
Name | Gets or sets the name of this EDM type. |
|
Namespace | Gets or sets the namespace of this EDM type. |
|
RemovedMembers | Gets the collection of explicitly removed members. |
|
UnderlyingType | Gets this enum underlying Type. |
Methods
Name | Description | |
---|---|---|
AddMember(Enum) | Adds an enum member to this enum type. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
RemoveMember(Enum) | Removes the given member. |
|
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