Szerkesztés

Megosztás a következőn keresztül:


IPEndPointCollection.SetItem(Int32, IPEndPoint) Method

Definition

Replaces the IPEndPoint element at the specified index.

protected:
 override void SetItem(int index, System::Net::IPEndPoint ^ item);
protected override void SetItem (int index, System.Net.IPEndPoint item);
override this.SetItem : int * System.Net.IPEndPoint -> unit
Protected Overrides Sub SetItem (index As Integer, item As IPEndPoint)

Parameters

index
Int32

The zero-based index of the element to replace.

item
IPEndPoint

The new IPEndPoint value for the element at the specified index. The value can be null for reference types.

Exceptions

The index parameter is less than zero

-or-

the index parameter is greater than the current count of items in the IPEndPointCollection.

The item parameter is null.

Remarks

IPEndPointCollection does not accept null as a valid value. IPEndPointCollection allows duplicate elements.

This method is an O(1) operation.

Applies to