Share via


TableController<TData>.ReplaceAsync Method (String, TData)

 

Provides a helper method for replacing an entity in a backend store. It deals with any model validation errors as well as exceptions thrown by the IDomainManager<TData> and maps them into appropriate HTTP responses.

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

Syntax

protected virtual Task<TData> ReplaceAsync(
    string id,
    TData item
)
protected:
virtual Task<TData>^ ReplaceAsync(
    String^ id,
    TData item
)
abstract ReplaceAsync : 
        id:string *
        item:'TData -> Task<'TData>
override ReplaceAsync : 
        id:string *
        item:'TData -> Task<'TData>
Protected Overridable Function ReplaceAsync (
    id As String,
    item As TData
) As Task(Of TData)

Return Value

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

A Task<TResult> representing the replace operation executed by the the IDomainManager<TData>.

See Also

TableController<TData> Class
Microsoft.WindowsAzure.Mobile.Service Namespace

Return to top