Share via


ActionConfiguration.ReturnsFromEntitySet<TEntityType> Method (EntitySetConfiguration<TEntityType>)

Sets the return type to a single EntityType instance.

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

Syntax

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

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

Type Parameters

  • TEntityType
    The type that is an EntityType.

Parameters

Return Value

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

See Also

Reference

ActionConfiguration Class

ReturnsFromEntitySet Overload

System.Web.Http.OData.Builder Namespace