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
userServerUserThe ServerUser to create or update.
cancellationTokenCancellationTokenA token that can be used to request cancellation of the operation.
Returns
Exceptions
- ArgumentException
Thrown if the
userhas no name specified or the password is invalid.