AsyncEntitySetController<TEntity, TKey>.Get Method
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
Get() | This method should be overridden to handle GET requests that attempt to retrieve entities from the entity set. This method should asynchronously compute the matching entities by applying the request's query options. |
|
Get(TKey) | Handles GET requests that attempt to retrieve an individual entity by key from the entity set. |
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top
AsyncEntitySetController<TEntity, TKey>.Get Method ()
This method should be overridden to handle GET requests that attempt to retrieve entities from the entity set. This method should asynchronously compute the matching entities by applying the request's query options.
Syntax
public virtual Task<IEnumerable<TEntity>> Get()
public:
virtual Task<IEnumerable<TEntity>^>^ Get()
abstract Get : unit -> Task<IEnumerable<'TEntity>>
override Get : unit -> Task<IEnumerable<'TEntity>>
Public Overridable Function Get As Task(Of IEnumerable(Of TEntity))
Return Value
Type: System.Threading.Tasks.Task<IEnumerable<TEntity>>
A Task that contains the matching entities from the entity set when it completes.
Return to top
AsyncEntitySetController<TEntity, TKey>.Get Method (TKey)
Handles GET requests that attempt to retrieve an individual entity by key from the entity set.
Syntax
[DebuggerStepThroughAttribute]
public virtual Task<HttpResponseMessage> Get(
TKey key
)
public:
[DebuggerStepThroughAttribute]
virtual Task<HttpResponseMessage^>^ Get(
TKey key
)
[<DebuggerStepThroughAttribute>]
abstract Get :
key:'TKey -> Task<HttpResponseMessage>
[<DebuggerStepThroughAttribute>]
override Get :
key:'TKey -> Task<HttpResponseMessage>
<DebuggerStepThroughAttribute>
Public Overridable Function Get (
key As TKey
) As Task(Of HttpResponseMessage)
Parameters
key
Type: TKeyThe entity key of the entity to retrieve.
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
A Task that contains the response message to send back to the client when it completes.
Return to top