Table of Contents

Method CreateOrUpdateUaEndpointAsync

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

CreateOrUpdateUaEndpointAsync(UaEndpoint, CancellationToken)

Creates a new OPC UA endpoint or updates an existing one.

public Task<bool> CreateOrUpdateUaEndpointAsync(UaEndpoint endpoint, CancellationToken cancellationToken = default)

Parameters

endpoint UaEndpoint

The UaEndpoint 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 endpoint has no name specified.