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
- entitySetConfiguration
Type: System.Web.Http.OData.Builder.EntitySetConfiguration<TElementEntityType>
The entity set which contains the returned entities.
Return Value
Type: System.Web.Http.OData.Builder.ActionConfiguration
Returns ActionConfiguration.