Method UpdateDeviceAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
UpdateDeviceAsync(Device, bool, CancellationToken)
Updates the specified device and optionally its tags and tag groups.
public Task<bool> UpdateDeviceAsync(Device device, bool updateTagsAndTagGroups = false, CancellationToken cancellationToken = default)
Parameters
device
DeviceThe device to update.
updateTagsAndTagGroups
boolIndicates whether to update the tags and tag groups of the device.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<bool>
A task that represents the asynchronous operation. The task result contains a boolean indicating whether the update was successful.
Exceptions
- ArgumentNullException
Thrown when the device or its channel is null.