Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method should be overridden to retrieve an entity by key from the entity set.
Namespace: System.Web.Http.OData
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
protected internal virtual Task<TEntity> GetEntityByKeyAsync(
TKey key
)
public protected:
virtual Task<TEntity>^ GetEntityByKeyAsync(
TKey key
)
abstract GetEntityByKeyAsync :
key:'TKey -> Task<'TEntity>
override GetEntityByKeyAsync :
key:'TKey -> Task<'TEntity>
Protected Friend Overridable Function GetEntityByKeyAsync (
key As TKey
) As Task(Of TEntity)
Parameters
key
Type: TKeyThe entity key of the entity to retrieve.
Return Value
Type: System.Threading.Tasks.Task<TEntity>
A Task that contains the retrieved entity when it completes, or null if an entity with the specified entity key cannot be found in the entity set.
See Also
AsyncEntitySetController<TEntity, TKey> Class
System.Web.Http.OData Namespace
Return to top