Method DeleteRestClientAgentAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
DeleteRestClientAgentAsync(RestClientAgent, CancellationToken)
Deletes the specified REST Client agent.
public Task<bool> DeleteRestClientAgentAsync(RestClientAgent agent, CancellationToken cancellationToken = default)
Parameters
agentRestClientAgentThe agent to delete.
cancellationTokenCancellationTokenThe cancellation token.
Returns
Exceptions
- ArgumentNullException
Thrown when the agent is null.
DeleteRestClientAgentAsync(string, CancellationToken)
Deletes the REST Client agent with the specified name.
public Task<bool> DeleteRestClientAgentAsync(string name, CancellationToken cancellationToken = default)
Parameters
namestringThe name of the agent to delete.
cancellationTokenCancellationTokenThe cancellation token.
Returns
Exceptions
- ArgumentException
Thrown when the name is null or empty.