ODataModelBuilder.AddEnumType(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.