Method CreateOrUpdateServerUserAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
CreateOrUpdateServerUserAsync(ServerUser, CancellationToken)
Creates a new Server User or updates an existing one.
public Task<bool> CreateOrUpdateServerUserAsync(ServerUser user, CancellationToken cancellationToken = default)
Parameters
user
ServerUserThe ServerUser to create or update.
cancellationToken
CancellationTokenA token that can be used to request cancellation of the operation.
Returns
Exceptions
- ArgumentException
Thrown if the
user
has no name specified or the password is invalid.