PeerCollection.Remove
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
Name | Type | Description |
---|---|---|
id | UInt64 | peer id of the peer to remove |
item | Peer | peer to remove |
Returns
Type | Description |
---|---|
Boolean | true 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
Name | Type | Description |
---|---|---|
id | UInt64 | peer id of the peer to remove |
Returns
Type | Description |
---|---|
Boolean | true 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
Name | Type | Description |
---|---|---|
item | Peer | peer to remove |
Returns
Type | Description |
---|---|
Boolean | true on success or false |