Table of Contents

Method CreateOrUpdateServerUserGroupAsync

Namespace
Kepware.Api.ClientHandler
Assembly
Kepware.Api.dll

CreateOrUpdateServerUserGroupAsync(ServerUserGroup, CancellationToken)

Creates a new Server User Group or updates an existing one.

public Task<bool> CreateOrUpdateServerUserGroupAsync(ServerUserGroup userGroup, CancellationToken cancellationToken = default)

Parameters

userGroup ServerUserGroup

The ServerUserGroup to create or update.

cancellationToken CancellationToken

A token that can be used to request cancellation of the operation.

Returns

Task<bool>

True if the operation succeeds; otherwise, false.

Exceptions

ArgumentException

Thrown if the userGroup has no name specified.