Our new developer documentation is now available. Please check it out!
PeerCollection.Contains
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 Contains(ulong id)
public bool Contains(Peer item)
Determines whether the peer by id is in the collection
Parameters
Name | Type | Description |
---|---|---|
id | UInt64 | peer id of the peer |
item | Peer | peer |
Returns
Type | Description |
---|---|
Boolean | true on success or false |
Variants
Contains(id)
public bool Contains(ulong id)
Determines whether the peer by id is in the collection
Parameters
Name | Type | Description |
---|---|---|
id | UInt64 | peer id of the peer |
Returns
Type | Description |
---|---|
Boolean | true on success or false |
Contains(item)
public bool Contains(Peer item)
Determines whether the peer is in the collection
Parameters
Name | Type | Description |
---|---|---|
item | Peer | peer |
Returns
Type | Description |
---|---|
Boolean | true on success or false |