Developer Documentation

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

NameTypeDescription
idUInt64peer id of the peer
itemPeerpeer

Returns

TypeDescription
Booleantrue on success or false

Variants

Contains(id)

public bool Contains(ulong id)

Determines whether the peer by id is in the collection

Parameters

NameTypeDescription
idUInt64peer id of the peer

Returns

TypeDescription
Booleantrue on success or false

Contains(item)

public bool Contains(Peer item)

Determines whether the peer is in the collection

Parameters

NameTypeDescription
itemPeerpeer

Returns

TypeDescription
Booleantrue on success or false