Share via


ActionConfiguration.ReturnsCollectionFromEntitySet<TElementEntityType> Method (String)

Sets the return type to a collection of EntityType instances.

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) ( _
    entitySetName As String _
) As ActionConfiguration
'Usage
Dim instance As ActionConfiguration 
Dim entitySetName As String 
Dim returnValue As ActionConfiguration 

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

Type Parameters

  • TElementEntityType
    The type that is an EntityType

Parameters

  • entitySetName
    Type: System.String
    The entitySetName which contains the returned EntityType instances

Return Value

Type: System.Web.Http.OData.Builder.ActionConfiguration
The return type of this ActionConfiguration.

See Also

Reference

ActionConfiguration Class

ReturnsCollectionFromEntitySet Overload

System.Web.Http.OData.Builder Namespace