sdk/dotnet/src/Microsoft.Datasync.Client/Table/RemoteTable.cs
/// <summary>
/// Undeletes an item in the remote table.
/// </summary>
/// <remarks>
/// This requires that the table supports soft-delete.
/// </remarks>
/// <param name="instance">The instance to undelete in the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the response when complete.</returns>
Undeletes an item in the remote table.
Undeletes an item in the remote table .
public Task<JToken> UndeleteItemAsync(JObject instance, CancellationToken cancellationToken = default)
        {
            string id = ServiceSerializer.GetId(instance);
            ServiceRequest request = new()
            {
                Method = ServiceRequest.PATCH,
                UriPathAndQuery = CreateUriPath(TableName, id),
                EnsureResponseContent = true,
                Content = "{\"deleted\":false}",
                RequestHeaders = GetConditionalHeaders(instance)
            };
            return SendRequestAsync(request, cancellationToken);
        }
public Task < JToken > UndeleteItemAsync ( JObject instance , CancellationToken cancellationToken = default ) { string id = ServiceSerializer . GetId ( instance ) ; ServiceRequest request = new ( ) { Method = ServiceRequest . PATCH , UriPathAndQuery = CreateUriPath ( TableName , id ) , EnsureResponseContent = true , Content = " \" \" " , RequestHeaders = GetConditionalHeaders ( instance ) } ; return SendRequestAsync ( request , cancellationToken ) ; }
Undeletes an item in the remote table.
Undeletes an item in the remote table .
A task that returns the response when complete.
A task that returns the response when complete .
instance
JObject
The instance to undelete in the table.
The instance to undelete in the table .
cancellationToken
CancellationToken
A  to observe.
A to observe .
remarks
This requires that the table supports soft-delete.
This requires that the table supports soft - delete .