Share via


AsyncEntitySetController<TEntity, TKey>.Get Method (TKey)

Handles GET requests that attempt to retrieve an individual entity by key from the entity set.

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

Syntax

'Declaration
Public Overridable Function Get ( _
    key As TKey _
) As Task(Of HttpResponseMessage)
'Usage
Dim instance As AsyncEntitySetController 
Dim key As TKey
Dim returnValue As Task(Of HttpResponseMessage)

returnValue = instance.Get(key)
public virtual Task<HttpResponseMessage> Get(
    TKey key
)
public:
virtual Task<HttpResponseMessage^>^ Get(
    TKey key
)
abstract Get : 
        key:'TKey -> Task<HttpResponseMessage> 
override Get : 
        key:'TKey -> Task<HttpResponseMessage> 
public function Get(
    key : TKey
) : Task<HttpResponseMessage>

Parameters

  • key
    Type: TKey
    The entity key of the entity to retrieve.

Return Value

Type: System.Threading.Tasks.Task<HttpResponseMessage>
Returns Task<TResult>.

See Also

Reference

AsyncEntitySetController<TEntity, TKey> Class

Get Overload

System.Web.Http.OData Namespace