Share via


ODataModelBuilder.AddEnumType(Type) Method

Definition

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

public virtual Microsoft.AspNet.OData.Builder.EnumTypeConfiguration AddEnumType (Type type);
abstract member AddEnumType : Type -> Microsoft.AspNet.OData.Builder.EnumTypeConfiguration
override this.AddEnumType : Type -> Microsoft.AspNet.OData.Builder.EnumTypeConfiguration
Public Overridable Function AddEnumType (type As Type) As EnumTypeConfiguration

Parameters

type
Type

The type to be registered or configured.

Returns

The configuration object for the specified enum type.

Applies to