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