Share via


ActionConfiguration.ReturnsFromEntitySet<TEntityType> Method (String)

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

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

Type Parameters

  • TEntityType
    The type that is an EntityType

Parameters

  • entitySetName
    Type: System.String
    The entitySetName which contains the return EntityType instance

Return Value

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

See Also

Reference

ActionConfiguration Class

ReturnsFromEntitySet Overload

System.Web.Http.OData.Builder Namespace