Share via


ODataModelBuilder.AddEnumType Method (Type)

 

Registers an enum type as part of the model and returns an object that can be used to configure the enum type.

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

Syntax

public virtual EnumTypeConfiguration AddEnumType(
    Type type
)
public:
virtual EnumTypeConfiguration^ AddEnumType(
    Type^ type
)
abstract AddEnumType : 
        type:Type -> EnumTypeConfiguration
override AddEnumType : 
        type:Type -> EnumTypeConfiguration
Public Overridable Function AddEnumType (
    type As Type
) As EnumTypeConfiguration

Parameters

  • type
    Type: System.Type

    The type to be registered or configured.

Return Value

Type: System.Web.OData.Builder.EnumTypeConfiguration

The configuration object for the specified enum type.

See Also

ODataModelBuilder Class
System.Web.OData.Builder Namespace

Return to top