sdk/dotnet/src/Microsoft.Datasync.Client/Table/RemoteTable.cs
/// <summary>
/// Replaces an item into the remote table.
/// </summary>
/// <param name="instance">The instance to replace into the table.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the replaced data when complete.</returns>
Replaces an item into the remote table.
Replaces an item into the remote table .
public Task<JToken> ReplaceItemAsync(JObject instance, CancellationToken cancellationToken = default)
        {
            string id = ServiceSerializer.GetId(instance);
            ServiceRequest request = new()
            {
                Method = HttpMethod.Put,
                UriPathAndQuery = CreateUriPath(TableName, id),
                EnsureResponseContent = true,
                Content = instance.ToString(Formatting.None),
                RequestHeaders = GetConditionalHeaders(instance)
            };
            return SendRequestAsync(request, cancellationToken);
        }
public Task < JToken > ReplaceItemAsync ( JObject instance , CancellationToken cancellationToken = default ) { string id = ServiceSerializer . GetId ( instance ) ; ServiceRequest request = new ( ) { Method = HttpMethod . Put , UriPathAndQuery = CreateUriPath ( TableName , id ) , EnsureResponseContent = true , Content = instance . ToString ( Formatting . None ) , RequestHeaders = GetConditionalHeaders ( instance ) } ; return SendRequestAsync ( request , cancellationToken ) ; }
Replaces an item into the remote table.
Replaces an item into the remote table .
A task that returns the replaced data when complete.
A task that returns the replaced data when complete .
instance
JObject
The instance to replace into the table.
The instance to replace into the table .
cancellationToken
CancellationToken
A  to observe.
A to observe .