Table of Contents

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 Device

The device to update.

updateTagsAndTagGroups bool

Indicates whether to update the tags and tag groups of the device.

cancellationToken CancellationToken

The 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.