Share via


StructuralTypeConfiguration.AddProperty Method

Adds a primitive property to this edm type.

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

Syntax

'Declaration
Public Overridable Function AddProperty ( _
    propertyInfo As PropertyInfo _
) As PrimitivePropertyConfiguration
'Usage
Dim instance As StructuralTypeConfiguration 
Dim propertyInfo As PropertyInfo 
Dim returnValue As PrimitivePropertyConfiguration 

returnValue = instance.AddProperty(propertyInfo)
public virtual PrimitivePropertyConfiguration AddProperty(
    PropertyInfo propertyInfo
)
public:
virtual PrimitivePropertyConfiguration^ AddProperty(
    PropertyInfo^ propertyInfo
)
abstract AddProperty : 
        propertyInfo:PropertyInfo -> PrimitivePropertyConfiguration  
override AddProperty : 
        propertyInfo:PropertyInfo -> PrimitivePropertyConfiguration
public function AddProperty(
    propertyInfo : PropertyInfo
) : PrimitivePropertyConfiguration

Parameters

Return Value

Type: System.Web.Http.OData.Builder.PrimitivePropertyConfiguration
The PrimitivePropertyConfiguration so that the property can be configured further.

See Also

Reference

StructuralTypeConfiguration Class

System.Web.Http.OData.Builder Namespace