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

定義

コレクション内の指定したインデックス位置にある要素を置き換えます。

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

パラメーター

index
Int32

置き換える要素の 0 から始まるインデックス番号。

item
ServiceEndpoint

指定した index に存在する ServiceEndpoint 項目の新しい値。

例外

index が 0 未満です。

- または -

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

itemnullです。

注釈

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

適用対象