Language

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

指定したServiceEndpointにあるindex項目の新しい値。

例外

index が 0 未満です。

-又は-

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

item は nullです。

注釈

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

適用対象