BindingElementCollection.SetItem Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Replaces a binding element at the specified index in the collection of binding elements.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Protected Overrides Sub SetItem ( _ index As Integer, _ item As BindingElement _ )
Parameters
- index
- Type: System.Int32
The zero-based index of the element to replace.
- item
- Type: System.ServiceModel.Channels.BindingElement
The new value for the BindingElement item at the specified index.
| Exception | Condition |
|---|---|
| ArgumentNullException | item is Nothing. |
Show: