Method InsertItemAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
InsertItemAsync<T>(T, NamedEntity?, CancellationToken)
Inserts an item in the Kepware server.
public Task<bool> InsertItemAsync<T>(T item, NamedEntity? owner = null, CancellationToken cancellationToken = default) where T : NamedEntity
Parameters
itemTownerNamedEntitycancellationTokenCancellationToken
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains a boolean indicating whether the insert was successful.
Type Parameters
T
InsertItemAsync<T, K>(K, NamedEntity?, CancellationToken)
Inserts an item in the Kepware server.
public Task<bool> InsertItemAsync<T, K>(K item, NamedEntity? owner = null, CancellationToken cancellationToken = default) where T : EntityCollection<K> where K : NamedEntity, new()
Parameters
itemKownerNamedEntitycancellationTokenCancellationToken
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains a boolean indicating whether the insert was successful.
Type Parameters
TK