Method DeleteRestServerAgentAsync
- Namespace
- Kepware.Api.ClientHandler
- Assembly
- Kepware.Api.dll
DeleteRestServerAgentAsync(RestServerAgent, CancellationToken)
Deletes the specified REST Server agent.
public Task<bool> DeleteRestServerAgentAsync(RestServerAgent agent, CancellationToken cancellationToken = default)
Parameters
agentRestServerAgentThe agent to delete.
cancellationTokenCancellationTokenThe cancellation token.
Returns
Exceptions
- ArgumentNullException
Thrown when the agent is null.
DeleteRestServerAgentAsync(string, CancellationToken)
Deletes the REST Server agent with the specified name.
public Task<bool> DeleteRestServerAgentAsync(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.