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
itemChatClientAgent-
The object to remove from the System.Collections.Generic.ICollection`1.
Returns
- bool
-
true if
itemwas successfully removed from the System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false ifitemis 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
agentIdstring-
The agent identifier to remove.