Share via


StructuralTypeConfiguration.AddEnumProperty Method (PropertyInfo)

 

Adds an enum property to this edm type.

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

Syntax

public virtual EnumPropertyConfiguration AddEnumProperty(
    PropertyInfo propertyInfo
)
public:
virtual EnumPropertyConfiguration^ AddEnumProperty(
    PropertyInfo^ propertyInfo
)
abstract AddEnumProperty : 
        propertyInfo:PropertyInfo -> EnumPropertyConfiguration
override AddEnumProperty : 
        propertyInfo:PropertyInfo -> EnumPropertyConfiguration
Public Overridable Function AddEnumProperty (
    propertyInfo As PropertyInfo
) As EnumPropertyConfiguration

Parameters

Return Value

Type: System.Web.OData.Builder.EnumPropertyConfiguration

The EnumPropertyConfiguration so that the property can be configured further.

See Also

StructuralTypeConfiguration Class
System.Web.OData.Builder Namespace

Return to top