IPEndPointCollection.SetItem(Int32, IPEndPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για