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

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

例外

index が 0 未満です。

-又は-

index がコレクションに含まれる項目の数を超えています。

itemnullです。

注釈

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

適用対象