Method DeleteItemAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
DeleteItemAsync<T>(T, CancellationToken)
Deletes an item from the Kepware server.
public Task<bool> DeleteItemAsync<T>(T item, CancellationToken cancellationToken = default) where T : NamedEntity, new()
Parameters
item
TcancellationToken
CancellationToken
Returns
Type Parameters
T
DeleteItemAsync<T>(string, CancellationToken)
Deletes an item from the Kepware server using the item name.
public Task<bool> DeleteItemAsync<T>(string itemName, CancellationToken cancellationToken = default) where T : NamedEntity, new()
Parameters
itemName
stringcancellationToken
CancellationToken
Returns
Type Parameters
T
DeleteItemAsync<T>(string[], CancellationToken)
public Task<bool> DeleteItemAsync<T>(string[] itemNames, CancellationToken cancellationToken = default) where T : NamedEntity, new()
Parameters
itemNames
string[]cancellationToken
CancellationToken
Returns
Type Parameters
T
DeleteItemAsync<T, K>(K, NamedEntity?, CancellationToken)
Deletes an item from the Kepware server.
public Task DeleteItemAsync<T, K>(K item, NamedEntity? owner = null, CancellationToken cancellationToken = default) where T : EntityCollection<K> where K : NamedEntity, new()
Parameters
item
Kowner
NamedEntitycancellationToken
CancellationToken
Returns
Type Parameters
T
K