Share via


TableValue.PatchAsync Method

Definition

Overloads

PatchAsync(RecordValue, RecordValue, CancellationToken)

Modifies one record in a data source.

PatchAsync(RecordValue, CancellationToken)

Modifies a single record based on primary key within the record itself.

PatchAsync(RecordValue, RecordValue, CancellationToken)

Modifies one record in a data source.

public System.Threading.Tasks.Task<Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>> PatchAsync(Microsoft.PowerFx.Types.RecordValue baseRecord, Microsoft.PowerFx.Types.RecordValue changeRecord, System.Threading.CancellationToken cancellationToken);
member this.PatchAsync : Microsoft.PowerFx.Types.RecordValue * Microsoft.PowerFx.Types.RecordValue * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>>
Public Function PatchAsync (baseRecord As RecordValue, changeRecord As RecordValue, cancellationToken As CancellationToken) As Task(Of DValue(Of RecordValue))

Parameters

baseRecord
RecordValue

A record to modify.

changeRecord
RecordValue

A record that contains properties to modify the base record.

cancellationToken
CancellationToken

Cancellation token.

Returns

The updated record.

Applies to

PatchAsync(RecordValue, CancellationToken)

Modifies a single record based on primary key within the record itself.

public System.Threading.Tasks.Task<Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>> PatchAsync(Microsoft.PowerFx.Types.RecordValue recordValue, System.Threading.CancellationToken cancellationToken);
member this.PatchAsync : Microsoft.PowerFx.Types.RecordValue * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.PowerFx.Types.DValue<Microsoft.PowerFx.Types.RecordValue>>
Public Function PatchAsync (recordValue As RecordValue, cancellationToken As CancellationToken) As Task(Of DValue(Of RecordValue))

Parameters

recordValue
RecordValue

Record containing a primary key and fields to update.

cancellationToken
CancellationToken

Cancellation token.

Returns

Applies to