Table of Contents

Method Remove

Namespace
Oscova.Agents.Collections
Assembly
Oscova.Agents.dll

Remove(ChatClientAgent)

Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection`1.

public bool Remove(ChatClientAgent item)

Parameters

item ChatClientAgent

The object to remove from the System.Collections.Generic.ICollection`1.

Returns

bool

true if item was successfully removed from the System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection`1.

Exceptions

NotSupportedException

The System.Collections.Generic.ICollection`1 is read-only.

Remove(string)

Removes a cached agent by identifier.

public bool Remove(string agentId)

Parameters

agentId string

The agent identifier to remove.

Returns

bool

true when an agent was removed.