PeerNameRecordCollection.SetItem Method (Int32, PeerNameRecord)

 

Replaces the PeerNameRecord at the specified index.

Namespace:   System.Net.PeerToPeer
Assembly:  System.Net (in System.Net.dll)

protected override void SetItem(
	int index,
	PeerNameRecord item
)

Parameters

index
Type: System.Int32

The zero-based index of the element to replace.

item
Type: System.Net.PeerToPeer.PeerNameRecord

The new value for the element to be replaced.

Exception Condition
ArgumentNullException

The item provided cannot be null.

Null items are not allowed.

.NET Framework
Available since 3.5
Return to top
Show: