語言

BindingElementCollection.SetItem(Int32, BindingElement) 方法

定義

在綁定元素集合中,替換指定索引的綁定元素。

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

參數

index
Int32

要替換的元素的零基指數。

item
BindingElement

項目在指定BindingElement值 的值 index 。

例外狀況

item 是 null。

適用於