EntitySetController<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 HttpResponseMessage
'Usage
Dim instance As EntitySetController
Dim key As TKey
Dim returnValue As HttpResponseMessage
returnValue = instance.Get(key)
public virtual HttpResponseMessage Get(
TKey key
)
public:
virtual HttpResponseMessage^ Get(
TKey key
)
abstract Get :
key:'TKey -> HttpResponseMessage
override Get :
key:'TKey -> HttpResponseMessage
public function Get(
key : TKey
) : HttpResponseMessage
Parameters
- key
Type: TKey
The entity key of the entity to retrieve.
Return Value
Type: System.Net.Http.HttpResponseMessage
The response message to send back to the client.