Method InsertItemsAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
InsertItemsAsync<T, K>(List<K>, int, NamedEntity?, CancellationToken)
Inserts a list of items in the Kepware server.
public Task<bool[]> InsertItemsAsync<T, K>(List<K> items, int pageSize = 10, NamedEntity? owner = null, CancellationToken cancellationToken = default) where T : EntityCollection<K> where K : NamedEntity, new()
Parameters
itemsList<K>pageSizeintownerNamedEntitycancellationTokenCancellationToken
Returns
- Task<bool[]>
A task that represents the asynchronous operation. The task result contains an array of booleans indicating whether the each insert was successful.
Type Parameters
TK