TraceListenerCollection.IList.Insert(Int32, Object) 方法

定義

TraceListener 物件插入 TraceListenerCollection 中的指定位置。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

應在 value 插入以零為起始的索引。

value
Object

要插入 TraceListenerTraceListenerCollection 物件。

實作

例外狀況

value 不是 TraceListener 物件。

備註

Insert使用 類別的 TraceListenerCollection 方法,將物件插入TraceListener集合中。

適用於