Freigeben über


CollectionTableValue<T>.FindAsync Method

Definition

Execute a linear search for the matching record.

protected virtual System.Threading.Tasks.Task<Microsoft.PowerFx.Types.RecordValue> FindAsync(Microsoft.PowerFx.Types.RecordValue baseRecord, System.Threading.CancellationToken cancellationToken, bool mutationCopy = false);
abstract member FindAsync : Microsoft.PowerFx.Types.RecordValue * System.Threading.CancellationToken * bool -> System.Threading.Tasks.Task<Microsoft.PowerFx.Types.RecordValue>
override this.FindAsync : Microsoft.PowerFx.Types.RecordValue * System.Threading.CancellationToken * bool -> System.Threading.Tasks.Task<Microsoft.PowerFx.Types.RecordValue>
Protected Overridable Function FindAsync (baseRecord As RecordValue, cancellationToken As CancellationToken, Optional mutationCopy As Boolean = false) As Task(Of RecordValue)

Parameters

baseRecord
RecordValue

RecordValue argument.

cancellationToken
CancellationToken

Cancellation token.

mutationCopy
Boolean

Should we make a copy of the found record, ahead of mutation.

Returns

A record instance within the current table. This record can then be updated.

Remarks

A derived class may override if there's a more efficient way to find the match than by linear scan.

Applies to