ServiceEndpointCollection.InsertItem(Int32, ServiceEndpoint) メソッド

定義

コレクション内の指定したインデックスの位置に項目を挿入します。

protected:
 override void InsertItem(int index, System::ServiceModel::Description::ServiceEndpoint ^ item);
protected override void InsertItem (int index, System.ServiceModel.Description.ServiceEndpoint item);
override this.InsertItem : int * System.ServiceModel.Description.ServiceEndpoint -> unit
Protected Overrides Sub InsertItem (index As Integer, item As ServiceEndpoint)

パラメーター

index
Int32

項目を挿入する位置の、0 から始まるインデックス番号。

item
ServiceEndpoint

指定した index の位置に挿入する ServiceEndpoint の項目。

例外

index が 0 未満です。

  • または - index が、コレクション内に含まれている項目数を超えています。

itemnullです。

注釈

このメソッドは、基本クラスで定義されている仮想メソッド InsertItem(Int32, T) をオーバーライドします。これは、null 値がコレクションに挿入されないように入力検証を行うために提供されています。 ユーザーが呼び出すためのものではありません。

適用対象