Developer Documentation

PeerCollection.Remove

Warning

Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.

public bool Remove(ulong id)
public bool Remove(Peer item)

Remove a peer by id from the collection

Info

Always false if the collection IsReadOnly

Parameters

NameTypeDescription
idUInt64peer id of the peer to remove
itemPeerpeer to remove

Returns

TypeDescription
Booleantrue on success or false

Variants

Remove(id)

public bool Remove(ulong id)

Remove a peer by id from the collection

Warning

Always false if the collection IsReadOnly

Parameters

NameTypeDescription
idUInt64peer id of the peer to remove

Returns

TypeDescription
Booleantrue on success or false

Remove(item)

public bool Remove(Peer item)

Remove a peer from the collection

Warning

Always false if the collection IsReadOnly

Parameters

NameTypeDescription
itemPeerpeer to remove

Returns

TypeDescription
Booleantrue on success or false