IPEndPointCollection.SetItem(Int32, IPEndPoint) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取代位於指定索引處的 IPEndPoint 項目。
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)
參數
- index
- Int32
要取代的項目之以零起始的索引。
- item
- IPEndPoint
位於指定索引之項目的新 IPEndPoint 值。 參考類型的值可以是 null
。
例外狀況
item
參數為 null
。
備註
IPEndPointCollection 不接受 null
為有效值。
IPEndPointCollection 允許重複的專案。
這個方法是 O (1) 作業。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應