Share via


IDomainManager<TData>.LookupAsync Method (String)

 

Looks up a single item in the backend store.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Tables
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Tables (in Microsoft.WindowsAzure.Mobile.Service.Tables.dll)

Syntax

Task<SingleResult<TData>> LookupAsync(
    string id
)
Task<SingleResult<TData>^>^ LookupAsync(
    String^ id
)
abstract LookupAsync : 
        id:string -> Task<SingleResult<'TData>>
Function LookupAsync (
    id As String
) As Task(Of SingleResult(Of TData))

Parameters

  • id
    Type: System.String

    The id representing the item. The id is provided as part of the ITableData and is visible to the client. However, depending on the backend store and the domain model, the particular implementation may map the id to some other form of unique identifier.

Return Value

Type: System.Threading.Tasks.Task<SingleResult<TData>>

A SingleResult<T> representing the result of the lookup. A SingleResult<T> represents an IQueryable containing zero or one entities. This allows it to be composed with further querying such as $select.

Remarks

See also M:QueryAsync which is the companion method for executing a query for multiple items.

See Also

IDomainManager<TData> Interface
Microsoft.WindowsAzure.Mobile.Service.Tables Namespace

Return to top