Share via


ActionConfiguration.ReturnsCollectionFromEntitySet<TElementEntityType> Method (EntitySetConfiguration<TElementEntityType>)

Sets the return type to a collection of entities.

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

Syntax

'Declaration
Public Function ReturnsCollectionFromEntitySet(Of TElementEntityType As Class) ( _
    entitySetConfiguration As EntitySetConfiguration(Of TElementEntityType) _
) As ActionConfiguration
'Usage
Dim instance As ActionConfiguration 
Dim entitySetConfiguration As EntitySetConfiguration(Of TElementEntityType)
Dim returnValue As ActionConfiguration 

returnValue = instance.ReturnsCollectionFromEntitySet(entitySetConfiguration)
public ActionConfiguration ReturnsCollectionFromEntitySet<TElementEntityType>(
    EntitySetConfiguration<TElementEntityType> entitySetConfiguration
)
where TElementEntityType : class
public:
generic<typename TElementEntityType>
where TElementEntityType : ref class 
ActionConfiguration^ ReturnsCollectionFromEntitySet(
    EntitySetConfiguration<TElementEntityType>^ entitySetConfiguration
)
member ReturnsCollectionFromEntitySet : 
        entitySetConfiguration:EntitySetConfiguration<'TElementEntityType> -> ActionConfiguration   when 'TElementEntityType : not struct
JScript does not support generic types and methods.

Type Parameters

  • TElementEntityType
    The entity type.

Parameters

Return Value

Type: System.Web.Http.OData.Builder.ActionConfiguration
Returns ActionConfiguration.

See Also

Reference

ActionConfiguration Class

ReturnsCollectionFromEntitySet Overload

System.Web.Http.OData.Builder Namespace