StructuralTypeConfiguration.AddCollectionProperty Method
Adds a collection 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 AddCollectionProperty ( _
propertyInfo As PropertyInfo _
) As CollectionPropertyConfiguration
'Usage
Dim instance As StructuralTypeConfiguration
Dim propertyInfo As PropertyInfo
Dim returnValue As CollectionPropertyConfiguration
returnValue = instance.AddCollectionProperty(propertyInfo)
public virtual CollectionPropertyConfiguration AddCollectionProperty(
PropertyInfo propertyInfo
)
public:
virtual CollectionPropertyConfiguration^ AddCollectionProperty(
PropertyInfo^ propertyInfo
)
abstract AddCollectionProperty :
propertyInfo:PropertyInfo -> CollectionPropertyConfiguration
override AddCollectionProperty :
propertyInfo:PropertyInfo -> CollectionPropertyConfiguration
public function AddCollectionProperty(
propertyInfo : PropertyInfo
) : CollectionPropertyConfiguration
Parameters
- propertyInfo
Type: System.Reflection.PropertyInfo
The property being added.
Return Value
Type: System.Web.Http.OData.Builder.CollectionPropertyConfiguration
The CollectionPropertyConfiguration so that the property can be configured further.