Developer Documentation
Our new developer documentation is now available. Please check it out!

PeerCollection.Contains

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